How to fix 3ds max 2018+ docking problem?


#1

Dear all,
I have a project need dock script to top of screen,all versions are OK except 3ds max 2018+,I have already known this issue,but don’t know how to fix it.(Is it can be fixed?)The code:

cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) maxSize:[200,25] minSize:[200,25]
cui.DockDialogBar test_rollout #cui_dock_top	

docking


#2

Hi momo2012
Have you tried giving a fixed size on top your rollout on decleration, like:

Rollout test_rollout "testMe" width:200 height:25
(
)


#3

I’ve tried,still has the same,below is the full code:

Rollout test_rollout "testMe" width:200 height:25
(
	button test "123" 
)
CreateDialog test_rollout 200 25
cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) maxSize:[200,25] minSize:[200,25]
cui.DockDialogBar test_rollout #cui_dock_top	

q


#4

Try this instead

Rollout test_rollout "testMe" width:200 height:25
(
	button test "123" 
)
CreateDialog test_rollout
cui.RegisterDialogBar test_rollout style:#(#cui_dock_top,#cui_max_sized, #cui_floatable, #cui_handles) 
cui.DockDialogBar test_rollout #cui_dock_top	

The “maxSize” is deprecated in 2018.
This code still does not dock above the ribbon but it handles height better.


#5

OK,thanks for great help
:grinning: