Creating Graphical User Interfaces Previous page   Next Page

Some Commonly Used Properties

As examples, this section describes four important and commonly used properties of user interface control components: Tag, Callback, String, and Value.

Tag

The Tag property is an identifier for the component. GUIDE assigns a value to the Tag property of every component you insert in your layout (e.g., pushbutton1) and then uses this string to name the callback associated with the Callback property (e.g., pushbutton1_Callback). You should change the Tag property to a more descriptive name, so that you can more easily identify the component's callback in the M-file. For example, if you add a push button that closes the GUI, you might set its tag to close_button.

GUIDE uses the Tag property to

Callback

The Callback property specifies the callback that is executed in the GUI M-file when a user activates the component.

String

The String property contains text for the component. The following are examples:

Value

The Value property contains a numerical value for the component, which must lie in the range specified by the Max and Min properties. The following are examples:


Previous page  What Properties Do I Need to Set? Setting Properties for Some Specific Components Next page

© 1994-2005 The MathWorks, Inc.