Specifications

Selecting GUI Options
3-27
Property Settings. GUIDE sets the following properties to create proportional
resizing GUIs:
Units properties of the axes, user interface controls, panels, and button
groups are set to
normalized so that these components resize and reposition
as the figure window changes size.
Units property of the figure is set to characters so the GUI displays at the
correct size at run-time, based on any changes in font size.
Resize figure property set to on (the default).
ResizeFcn figure property is left unset.
User-Specified Resize Operation
You can create GUIs that accommodate resizing, while at the same time
maintain the appearance and usability of your original design by programming
the figure
ResizeFcn callback routine. This callback routine allows you to
recalculate the size and position of each component based on the new figure
size.
This approach to handling figure resizing is used most typically in GUI-based
applications that require user interaction on an ongoing basis. Such an
application might contain axes for displaying data and various components
whose position and size are critical to the successful use of the interface.
Property Settings. GUIDE sets the following properties to implement this style of
GUI:
Units properties of the figure, axes, user interface controls, panels, and
button groups are set to
characters so the GUI displays at the correct size
at run-time.
Resize figure property is set to on (the default).
ResizeFcn figure property requires a callback routine to handle resizing.
See “The Address Book Resize Function” on page 5-43 for an example of a
user-written resize function.
Command-Line Accessibility
You can restrict access to the GUI figure handle from the command line with
the
Command-line accessibility options. This prevents users from
inadvertently changing the appearance of the GUI by entering commands,