Notifications
Clear all
[Closed] rollup a rollout after added to a subrollout
Nov 11, 2011 1:04 am
i have a rollout added to a subrollout as the title suggests but I can’t work out how to rollup the rollout via mxs. i tried triggering the rolledup event and it seems to execute the ‘on rollout rolledup do’ code but doenst actually modify the ui
Example code:
try(destroyDialog test_rollout)catch()
rollout test_sub_rollout "test_sub_rollout"
(
button btn "button"
on btn pressed do test_sub_rollout.rolledUp #(true,false)[random 1 2]
on test_sub_rollout rolledup state do
format "triggered rolledup event with value: %
" state
)
rollout test_rollout "test_rollout"
(
subrollout sub width:200 height:100 pos:[0,0] align:#center
on test_rollout open do addSubRollout sub test_sub_rollout
)
createDialog test_rollout width:200 height:100
any ideas ?
2 Replies