Rollout .Controls Property
This property returns an array of all the controls in the rollout.
EXAMPLE
|
rollout testRollout "Test"
(
group "Test"
(
button btn_button "Press Me If You Can"
spinner spn_spinner "Spin Me If You Can"
checkbox chk_checkbox "Check Me If You Can"
)--end group
)--end rollout
createDialog testRollout width:200
for c in testRollout.controls do print c
--loop through all controls in the rollout and
--disable them all:
for c in testRollout.controls do c.enabled = false
|
RESULT
|
Rollout:testRollout
true
GroupStartControl:Test
ButtonControl:btn_button
SpinnerControl:spn_spinner
CheckBoxControl:chk_checkbox
GroupEndControl:Test
OK
OK
|
NOTE:
Note that a group is implemented as a pair of controls: groupStartControl and groupEndControl, which "bracket" the rest of the controls. In the above example, the group is also
disabled.