Notifications
Clear all

[Closed] rollup a rollout after added to a subrollout

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

did you try to change the rollout’s open(ed) property?

ZOMG I overlooked that in the reference… thanks denis. works perfect