User`s guide

11 Lay Out a Programmatic GUI
Figure windows with a standard menu bar also have a Desktop menu from
which the user can dock and undock them.
To display the docking arrow and the Desktop > Dock Figure menu item,
thefigureproperty
DockControls must be set to 'o n'. You can set it in the
Property Inspector. In addition, the
MenuBar and /or ToolBar figure properties
must be set to
'on' to display docking controls.
The
WindowStyle figure property also affects docking behavior. The default is
'normal', but if you change it to 'docked', then the following applies:
The GUI opens docked in the desktop when you run it.
The
DockControls property is set to 'on' and cannot be turned off until
WindowStyle is no longer set to 'docked'.
If you undock a GUI created w ith
WindowStyle 'docked' ,itwillhavenot
have a docking arrow unless the figure displays a menu bar or a toolbar
(either standard or customized). When it has no docking arrow, users can
undockitfromthedesktop,butwillbeunabletoredockitthere.
To summarize, you can display docking controls with the
DockControls
property as long as it is not in conflict with the figure’s WindowStyle property.
Note GUIs that are modal dialogs (figures with WindowStyle 'modal')
cannot have menu bars, toolbars, or docking controls.
For more information, see the DockControls , MenuBar , ToolBar,and
WindowStyle property descriptions on the figure properties reference page.
11-78