[Closed] floater window menubar?
is it possible to have a menu bar in a floater window created through newRolloutFloater??
thanks in advance
/Lui
I don’t think that you can. It is only possible in createDialog. Why are you using newRolloutFloater?
I’m using a floater window so i can dock it (registering it) and have several rollouts… is there another way to have that and get the menubar without using newRolloutFloater?
thanks for your answer
/Lui
This can all be done with createdialog. You will need to look up subMenu so that you can add multiple rollouts and you can register the first rollout that is used to by createDialog so that it can be docked.
I don’t know if I have explained very well my problem. I’m adding and removing rollouts dinamically with addrollout and removerollout, that’s why i need a RolloutFloater. I would like also to have a menu bar on top of my rollouts but i’m starting to think this is not possible…
I don’t understand yet how i can add more than one rollout when using createdialog, I’ve been searching through the documentation and it seems submenu is not used for this… can i ask you for a bit more of your time to get a simple example or a more detailed explanation??
i really appreciate your help
/Lui
fn menu=
(
rcMenu menu
(
subMenu "File"
(
menuItem closeMnu "Close"
)
on closeMnu picked do
(
try
(
cui.unRegisterDialogBar mainR
destroyDialog mainR
)catch()
)
)
)
rollout subR1 "Sub 1"
(
)
rollout subR2 "Sub 2"
(
)
rollout mainR "Main" height:300
(
subRollout sub1 "Sub" height:290 width:mainR.width offset:[-11,0]
)
createDialog mainR menu:(menu())
addSubRollout mainR.sub1 subR1
addSubRollout mainR.sub1 subR2
cui.RegisterDialogBar mainR
Hey thanks mate! I think this is really what i was looking for, i didn’t know about this subrollout clause, it will work for the UI I want (i was confused looking for submenu as you said in the previous post …)
you’re the man Paul :bowdown:
/Lui