I have read the documentation of htmllib and have a form set up towhere it will pop-up in the browser, but I am trying to attempt to get this form to show in a pop-up browser, Does anyone have an idea on how to do this?
HtmlLayout()
return \
{"
Icon: [icon]
Size: [Long]x[Wide]
Name: [name]
Stat:
[stat]
[submit]
"}
ID:173084
Feb 18 2004, 5:29 pm
|
|
In response to Malver
|
|
Problem is, I don't see the browse procedure in the htmllib proc nor what I have down so far.
|
In response to Texter
|
|
The Form has a var called form_window that is used for this purpose. Set form_window to the parameters you want to send the browse() proc and you're in business.
|
In response to Shadowdarke
|
|
Thanks Darke, I knew form_window had somthing to do with something, it works out just as the options of a browser procedure would, Maybe you could help me with another problem that I have encountered,
I am trying to adjust what I have so far, im trying to use forms on existing objects in the world, right now, I have it towhere it creates a new object every time you use it in the ProcessForm() proc, EX: ProcessForm() var/obj/Box/b = new/obj/Box b.name = name b.stat = stat b.icon = icon usr << browse(null,"window= Box") Wich is fine for creating a new object, but I can't think of a way to change the object's variables with Form and im also unsure if the variables current sum can be inputed so the player wouldn't have to retype the variables if he only wanted to make a spell corrections and so on. Can anyone lead me in the right direction? ~Texter |
In order to make the HTML window a pop-up, specify the the "window=some_window_name" parameter in the browse() procedure. Check out the reference for browse() for more info.