steev
09-21-2005, 06:30 PM
the following script does what i expect it to. it creates a rollout ("mainRollout") with a subrollout window ("SubRolloutWindow") and inserts a previously defined rollout ("progbarRollout") with a progressbar into the subRollout...
--------------------------------------------------------
clearListener()
rollout progbarRollout "progbar"
(
progressbar progbar1 value:78 height:18
)
try(destroyDialog mainRollout)catch()
rollout mainRollout "Main Rollout"
(
subRollout SubRolloutWindow "SubRollOutWindow" width:480 height:70
on mainRollout open do
(
addSubRollout mainRollout.subRolloutWindow progbarRollout
--mainRollout.subRollOutWindow.progbarRollout.progbar1.value = 30
)
)
createDialog mainRollout 500 90
--------------------------------------------------------
however, when i uncomment the line...
mainRollout.subRollOutWindow.progbarRollout.progbar1.value = 30
...which should just change the predefined value for the progressbar, the progressbar completely disappears. if you rollup the "progbar" dialog and unroll it again, the progressbar appears as it should at the new value.
how can i get the progressbar to not disappear when i change the value on the fly?
prethanks,
steev
--------------------------------------------------------
clearListener()
rollout progbarRollout "progbar"
(
progressbar progbar1 value:78 height:18
)
try(destroyDialog mainRollout)catch()
rollout mainRollout "Main Rollout"
(
subRollout SubRolloutWindow "SubRollOutWindow" width:480 height:70
on mainRollout open do
(
addSubRollout mainRollout.subRolloutWindow progbarRollout
--mainRollout.subRollOutWindow.progbarRollout.progbar1.value = 30
)
)
createDialog mainRollout 500 90
--------------------------------------------------------
however, when i uncomment the line...
mainRollout.subRollOutWindow.progbarRollout.progbar1.value = 30
...which should just change the predefined value for the progressbar, the progressbar completely disappears. if you rollup the "progbar" dialog and unroll it again, the progressbar appears as it should at the new value.
how can i get the progressbar to not disappear when i change the value on the fly?
prethanks,
steev
