[Closed] Rollout problem
Hi
I have a rolloutfloater with four rollouts inside. What i’m trying to achieve is, when rollout01 is open, and rest of rollouts are closed, if i open rollout02, i want rollout 01 to close.
Is this posible?
theNewFloater = newRolloutFloater "" 500 800
addRollout rollout01 theNewFloater
addRollout rollout02 theNewFloater
addRollout rollout03 theNewFloater
addRollout rollout04 theNewFloater
Hi
Roll_1
Roll_2
Roll_3rollout Roll_1 “Whatever” width:162 height:59 rolledup:False
(
button btn1 “Button”
button btn2 “Button”
[color=MediumTurquoise] on Roll_1 rolledup state do ( if state do (Roll_2.open =false ; Roll_3.open = false) ))
rollout Roll_2 “Whenever” width:162 height:57 rolledup:true
(
button btn3 “Button”
button btn4 “Button”on Roll_2 Rolledup state do ( if state do (Roll_1.open =false ; Roll_3.open =false)) )
rollout Roll_3 “whereever” Rolledup:true
(
button btn5 “Button”
checkButton ckb2 “CheckButton”
pickButton btn6 “PickButton”on Roll_3 Rolledup state do ( if state do (Roll_1.open = false ; Roll_2.open =false) ) )
MaR =NewRolloutFloater “BlaBla” 180 240
addrollout roll_1 MaR
addrollout roll_2 MaR
addrollout roll_3 MaR[/color]
if You Don’t declare the Rollouts “Variables” at the Beginning , you Will get Undefined The Next Time You Run max And try the Script