User`s guide

Design Programmatic GUIs for Cross-Platform Compatibility
ResizeFcn enables you to customize the GUI’s resize behavior and is valid
only if you set
Resize to on. ResizeFcn is the handle of a user-written
callback that is executed when a user resizes the GUI. It controls the resizing
of all components in the GUI. See documentation for the figure
ResizeFcn
property for an example of resizing.
Thefollowingtableshowsappropriate
Units settings based on the resize
behavior of your GUI. These settings enable your GUI to automatically adjust
the size and rela tiv e s pa cing of c om p onents as the GUI displa ys o n d ifferent
computers and when the GUI is resized.
Component Default Units
Resize = on
ResizeFcn = [] Resize = off
Figure
pixels characters characters
User interface controls
(uicontrol) such
as p ush bu ttons,
sliders, and edit text
components
pixels normalized
characters
Axes
normalized normalized characters
Panel
normalized normalized characters
Button group
normalized normalized characters
Note Thedefaultsettingsshowninthetableabovearenotthesameasthe
GUIDE default settings. GUIDE default settings depend on the GUIDE
Resize behavior option and are the same as those shown in the last two
columns of the table.
About Some Units Settings
Characters. Character units are defined by characters from the default
system font. T he width of a character unit equals the width of the letter
x in
the system font. The height of a character unit is the distance between the
baselines of two lines of text. Note that character units are not square.
11-97