See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | |
| | | |
| | | Adding Components to the GUI | | |
| | | |
| | | | | | | | | | | Component | Function | Description | | | | "Static Text" on page 11-26 | uicontrol | Static text controls display lines of text. Static text is typically used to label other controls, provide directions to the user, or indicate values associated with a slider. Users cannot change static text interactively. | | | | "Toggle Button" on page 11-27 | uicontrol | Toggle buttons generate an action and indicate whether they are turned on or off. When you click a toggle button, it appears depressed, showing that it is on. When you release the mouse button, the toggle button remains depressed until you click it a second time. When you do so, the button returns to the raised state, showingthatitisoff. Useabutton group to manage mutually exclusive radio buttons. | | | | | | | | | | |
| | | |
| | | Components are sometimes referred to by the name of the function used to create them. For example, a push button is created using the uicontrol function, and it is sometimes referred to as a uicontrol. A panel is created using the uipanel function and may be referred to as a uipanel. | | |
| | | |
| | | Adding User Interface Controls Use the uicontrol function to create user interface controls. These include push buttons, toggle buttons, sliders, radio buttons, edit text controls, static text controls, pop-up menus, check boxes, and list boxes. | | |
| | | |
| | | Note See "Available Components" on page 11-10 for descriptions of these components. See "Programming User Interface Controls" on page 12-15 for basic examples of programming these components. | | |
| | | |
| | | 11-13 | | |
| | | |
| | | | | | | | | | | | | | |