<rollout>.controls
このプロパティは、ロールアウト内のすべてのコントロールの配列を返します。
|
例 |
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
|
|
結果 |
Rollout:testRollout true GroupStartControl:Test ButtonControl:btn_button SpinnerControl:spn_spinner CheckBoxControl:chk_checkbox GroupEndControl:Test OK OK |

グループは 1 組のコントロールとして実装されます。groupStartControl と groupEndControl が残りのコントロールを囲んでいることに注目してください。前の例では、グループも無効にされています。