Notifications
Clear all
[Closed] Nested Rollout in Scripted Material??
May 16, 2006 8:32 pm
So I have a fairly complex scripted material that I have been trying to simplify with the use of rollouts. Since scripted materials are rollouts themselves, I assumed this had to be done with nested rollouts. Here lies the dilemma…
I cant seem to get the nested rollout to add to the main rollout. Even inside an “on open” event handler, it jsut doesn’t add it unless you re-evaluate the script while the material is open.
rollout rollMain "Main Scripted Material"
(
label lblMain "The main rollout"
rollout rollSub "Sub Rollout"
(
label lblSub"The sub-rollout"
)
on rollMain open do
(
addrollout rollSub
)
)
Anyone know a way around this??
(I couldn’t get subRollouts via addSubRollout to work either)
2 Replies
May 16, 2006 8:32 pm
Try this
rollout rollMain "Main Scripted Material"
(
label lblMain "The main rollout"
subrollout sr "Sub - 1"
on rollMain open do
(
addsubrollout sr rollSub
sr.height =180
)
)
rollout rollSub "Sub Rollout"
(
label lblSub "The sub-rollout"
button b "Press"
)
CreateDialog rollMain 200 300
Hope this helps
Mobeen