MAXScript Tools and Interaction with 3ds Max > Creating MAXScript Tools > Scripted Dialogs >

# cui.DockDialogBar and cui.FloatDialogBar

| Creating User Interfaces - Quick Navigation

    cui.DockDialogBar <RolloutFloater_or_Rollout> <dockflag>

This method docks a registered dialog bar to the specified docking area.

<RolloutFloater_or_Rollout> - This parameter must be a RolloutFloater created with NewRolloutFloater or a Rollout that has been installed in a dialog using CreateDialog, and has been registered using cui.RegisterDialogBar.

<dockflag> - Specifies the area to dock the dialog bar to.

Can be one of the following:

#cui_dock_left - dock to the left

#cui_dock_top - dock to the top

#cui_dock_right - dock to the right

#cui_dock_bottom - dock to the bottom

NoteAttempting to set the <dockflag> to any other value than the listed above will cause unpredictable results. Always dock to one of the four sides.

    cui.FloatDialogBar <RolloutFloater_or_Rollout>

This method will float a registered dialog bar.

<RolloutFloater_or_Rollout> - This parameter must be a RolloutFloater created with NewRolloutFloater or a Rollout that has been installed in a dialog using CreateDialog , and has been registered using cui.RegisterDialogBar .

#### See Also

- CreateDialog

- DestroyDialog

- GetDialogPos and SetDialogPos

- cui.getDockState