Notifications
Clear all

[Closed] DockDialogBar #cui_dock_top issues

I’m having problems with docking a toolbar to the top of the max window when the main toolbar is open as well. For some reason max doesn’t seem to create a second row for the newly docked toolbar, but just sticks it behind any existing ones.
Which in the case of the top, almost always means that it becomes invisible:


 rollout new ""
  (
 	 dropDownList num "" items:#("1", "2", "3") pos:[4,4] width:113
 	 
 	 on new open do
 	 (
 		 cui.registerDialogBar new
 		 cui.dockDialogBar new #cui_dock_top
 	 )
 	 
 	 on num selected i do print ("Selected : " + num.items[i])
  )
  createDialog new
 

Any ideas on how to avoid this?

(using max 9 by the way)

4 Replies
 PEN

I have never found a way to force a location for the docking to any given side, you just have to hope for the best.

Problem is, when creating a tool that is going to be used by a whole team of artists, simply trusting your luck isn’t something I’d feel comfortable about… (especially with max)

You could set the ‘#cui_max_sized’ style; that will stick it in its own toolbar line (and indeed it is odd that 3ds Max doesn’t do that even when dropping toolbars yourself). Of course, that toolbar line will be -completely- filled with that dialog… So if the entire extent of your dialog is just that rather narrow drop-down, that’s an awful waste of space.

Thanks for the suggestion.
Unfortunately, the toolbar isn’t very wide, just about 400 pixels or so. And I want to give the user the ability to use it as a floater as well. So using it as maximized isn’t really a solution either I’m afraid.