MattRennie
02-05-2010, 02:34 PM
Ok now I'm pretty sure im just being a bit of an idiot, but I have the following chuk of script
rci = rolloutCreator "arcGuiWindow" "My Rollout"
fn createWindow =
(
rci.begin()
rci.addControl #button #myButton arcName[arcArrayItem]
rci.addHandler #myButton #pressed filter:on codeStr:"onButtonClicked() "
createDialog (rci.end())
)
now this worsk perfectly fine, but when i try to close it via a
destroyDialog "arcGuiWindow"
I get a load of errors about requiring a rollout class. Can someone put me out of my misery and tell me how to actually destroy this window?
rci = rolloutCreator "arcGuiWindow" "My Rollout"
fn createWindow =
(
rci.begin()
rci.addControl #button #myButton arcName[arcArrayItem]
rci.addHandler #myButton #pressed filter:on codeStr:"onButtonClicked() "
createDialog (rci.end())
)
now this worsk perfectly fine, but when i try to close it via a
destroyDialog "arcGuiWindow"
I get a load of errors about requiring a rollout class. Can someone put me out of my misery and tell me how to actually destroy this window?
