Creating Graphical User Interfaces Previous page   Next Page

Properties that Affect Component Access

HandleVisibility

The HandleVisibility property controls access to a component's handle. This property determines when a component's handle is accessible in its parent's list of children. When a handle is not accesible in a parent's list of children, it is not returned by functions that obtain handles by searching the object hierarchy or querying handle properties with functions such as get, findobj, gca, gcf, gco, newplot, cla, clf, and close. Neither is the handle accessible in the parent figure's CurrentObject property.

Handles that are hidden are still valid. If you know a component's handle, you can set and get its properties, and pass it to any function that operates on handles.

You can set the root ShowHiddenHandles property to on to make all handles accessible, regardless of their HandleVisibility settings. This does not affect the values of the HandleVisibility properties.


Previous page  Properties that Affect Callback Execution Examples of Callbacks for GUI Components Next page

© 1994-2005 The MathWorks, Inc.