Specifications

Selecting GUI Options
3-29
HandleVisibility — Callback. Setting HandleVisibility to callback causes
handles to be visible from within callback routines or functions invoked by
callback routines, but not from within functions invoked from the command
line. This provides a means to protect GUIs from command-line users, while
allowing callback routines to have complete access to object handles. You
should use this option if your GUI contains axes.
HandleVisibility — Off. Setting the HandleVisibility property to off removes
the handle of the figure from the list of root object children so it will not become
the current figure (which is the target for graphics output). The handle remains
valid, however, so a command that specifies the handle explicitly still works
(such as
close(1)). However, you cannot use commands that operate only on
the current figure or axes. These commands include
xlabel, ylabel, zlabel,
title, gca, gcf, and findobj.
HandleVisibility — On. Handles are always visible when HandleVisibility is on.
IntegerHandle. Setting the IntegerHandle property to off causes MATLAB to
assign nonreusable real-number handles (e.g., 67.0001221...) instead of
integers. This greatly reduces the likelihood of someone accidently performing
an operation on the figure.
Using findobj
When you set the Command-line accessibility to off, the handle of the GUI
figure is hidden. This means you cannot use
findobj to locate the handles of
the uicontrols in the GUI. As an alternative, the GUI M-file creates an object
handle structure that contains the handles of each uicontrol in the GUI and
passes this structure to subfunctions.
Generate FIG-File and M-File
Select Generate FIG-file and M-file in the GUI Options dialog if you want
GUIDE to create both the FIG-file and the GUI M-file (this is the default). Once
you have selected this option, you can select any of the following items in the
frame to configure the M-file:
Generate callback function prototypes
Application allows only one instance to run (singleton)
Use system color scheme for background