Notifications
Clear all

[Closed] RCMenu with newRolloutFloater?

Hey guys,

How can i add RCMenu to newRolloutFloater?

This one has 2 rollouts, but how can I add the RCMenu to it?


rollout example_A "Example A"
(
	label text_A "Text A"
)

rollout example_B "Example B"
(
	label text_B "Text B"
)

rcMenu myMenu 

(

subMenu "Help" 
( 
menuItem about_ "About" 
)
	
)

example_test = newRolloutFloater "Example Test" 200 140 --menu:myMenu
addRollout example_A example_test
addRollout example_B example_test

This one works, but with only 1 rollout.

rollout example_A "Example A"
(
	label text_A "Text A"
)

rollout example_B "Example B"
(
	label text_B "Text B"
)

rcMenu myMenu 

(

subMenu "Help" 
( 
menuItem about_ "About" 
)
	
)

createdialog example_A menu:myMenu

Thanks!
Nahuel

2 Replies
 PEN

Use createDialog but have a look at subRollouts. You need one rollout with a subRollout and then pile all your needed rollouts into the subRollout. Then you can do what ever you want.

I have not use newRolloutFloater in many many years.

Thank you!