First off I dont know if this belongs here or at Noob central so I just put it here. Sorry if its wrong.
Now, I'm using the htmllib made by Dantom to make my Form/New_Map type. Now in that form I have the procs ProcessFrom(),HtmlLayout. Those seem all fine to me and are in working order. The problem is this, when I click the obj/New_File it does this.
Click()
var/Form/New_Map/frm = new()
frm.DisplayForm()
world << "[usr:fx],[usr:fy],[usr:fz],[usr:FileName]."
New_Map_File(usr:fx,usr:fy,usr:fz,usr:FileName,usr)
As u can see I used the var/Form/New_Map/frm = new() like in the readme.htm that came with the lib. and DisplayForm() to display the form to the user which works. Now to the problem. New_Map_File() proc is a proc I set globaly. Thats suppose to configure what values I get from the form. But by the time the form has loaded the proc is all ready running. Would any one happen to know how to wait till I have completed the form and then it goes on. I can't seem to find it. Please do help if you can thanks :)
ID:261649
Nov 17 2002, 2:19 pm
|
|
Nov 17 2002, 5:43 pm
|
|
I'm not aware of any way to wait the random amount of time it would take to fill out the form. Forms have their own ProcessForm() proc to handle the values they were given. It is called when the form is closed. You might want to just use that.
|
In response to ACWraith
|
|
ACWraith wrote:
I'm not aware of any way to wait the random amount of time it would take to fill out the form. Forms have their own ProcessForm() proc to handle the values they were given. It is called when the form is closed. You might want to just use that. But isnt ProcessForm() used to set the values in the form filled out too the given variables. Ahh wait I think I know what you mean goto the lib code and edit the default ProcessForm() hmmm but how? How do you make it wait till its been submited? |
In response to Green Lime
|
|
I most definitely do not mean editing the library. Please do not get in the habit of doing so.
I'm not sure which parts you you are speaking of when you say "given variables" so I'm going to say no. =) ProcessForm() is called when the form is complete. At that time, the Form vars have been filled in. You may use them as you wish. For instance, the example in the html file included with the form library uses ProcessForm() to set usr vars. |