Specifications

Command-Line Accessibility
2-13
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, and gcf.
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 located the handles of
the uicontrols in the GUI. As an alternative, the application M-file creates an
object handle structure that contains the handles of each uicontrol in the GUI
and passes this structure to subfunctions.