ID:171059
 
can anyoen tell me how to use the form_window part of dantom's htmllib? im so hopeless sometimes.

thank you for any help in advance
GunRunner wrote:
can anyoen tell me how to use the form_window part of dantom's htmllib? im so hopeless sometimes.

thank you for any help in advance

It is used for the Options argument when the form is sent through browse(). You can use it for anything that browse() options support. Details here: http://www.byond.com/docs/ref/info.html#/proc/browse
In response to Shadowdarke
var/Form/Generate/frm = new()
frm.DisplayForm()


this is my code... how would i work it in?

im sorry to be a bother...
In response to GunRunner
GunRunner wrote:
how would i work it in?

You could define it as part of your form:
Form/Generate
form_window = "window=gen_window;size=400x450"


or you can assign it after creating the form:
var/Form/Generate/frm = new()
frm.form_window = "window=gen_window;size=400x450"
frm.DisplayForm()


You could even use the second method to allow players to customize their popup windows:
var/Form/Generate/frm = new()
frm.form_window = usr.popup_preferences
frm.DisplayForm()



im sorry to be a bother...

It's no bother when you ask good questions. :)
In response to Shadowdarke
thank you so very much