Creating Graphical User Interfaces | ![]() ![]() |
Allowing Proportional GUI Resizing
Use this approach if you want to allow users to resize the GUI and are satisfied with a behavior that simply scales each component's size and relative position within the figure window. Note that the font size of component labels does not resize and, if the size is reduced enough, these labels may become unreadable.
This approach works well with simple GUI tools and dialog boxes that apply settings without closing. Users may want to resize these window to better fit them on the screen with other windows, but the precise layout to the GUI is not critical to its function.
Property Settings
GUIDE sets the following properties to implement this style of GUI:
Units
properties of the axes and uicontrols should be set to normalized
so the these components resize and reposition as the figure window changes size. Units
property of the figure should be set to characters
so the GUI displays at the correct size at runtime.Resize
figure property set to on
(the default).ResizeFcn
figure property does not require a callback routine.![]() | Making Your GUI Nonresizable | User-Specified Resize Operation | ![]() |