Creating Graphical User Interfaces Previous page   Next Page

String Property for Push Buttons and Static Text

You can set the label in some user interface controls, such as push buttons, by using the String property. For example, to set the label of the top push button, select the push button in the Layout Editor and then, in the Property Inspector, scroll down until you come to String. In the field to the right of String, change Push Button to Surf, as shown in the following figure.

Property inspector showing string changed to surf

You can view the change by clicking the Layout Editor. Similarly, change the String property of the middle push button to Mesh, the bottom push button to Contour, and the Static Text to Select Data.


Previous page  Title Property String Property for Pop-up Menus Next page

© 1994-2005 The MathWorks, Inc.