GUIDE Components

The component palette at the left side of the Layout Editor contains the components that you can add to your GUI. You can display it with or without names.

The following image shows the component palette with names displayed.

When you first open the Layout Editor, the component palette contains only icons. To display the names of the GUI components, select File > Preferences > GUIDE, check the box next to Show names in component palette, and then click OK.

Component

Icon

Description

Push Button

Push buttons generate an action when clicked. For example, an OK button might apply settings and close a dialog box. When you click a push button, it appears depressed; when you release the mouse button, the push button appears raised.

Slider

Sliders accept numeric input within a specified range by enabling the user to move a sliding bar, which is called a slider or thumb. Users move the slider by clicking the slider and dragging it, by clicking in the trough, or by clicking an arrow. The location of the slider indicates the relative location within the specified range.

Radio Button

Radio buttons are similar to check boxes, but radio buttons are typically mutually exclusive within a group of related radio buttons. That is, when you select one button the previously selected button is deselected. To activate a radio button, click the mouse button on the object. The display indicates the state of the button. Use a button group to manage mutually exclusive radio buttons.

Check Box

Check boxes can generate an action when checked and indicate their state as checked or not checked. Check boxes are useful when providing the user with a number of independent choices, for example, displaying a toolbar.

Edit Text

Edit text components are fields that enable users to enter or modify text strings. Use edit text when you want text as input. Users can enter numbers but you must convert them to their numeric equivalents.

Static Text

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.

Pop-Up Menu

Pop-up menus open to display a list of choices when users click the arrow.

List Box

List boxes display a list of items and enable users to select one or more items.

Toggle Button

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, showing that it is off. Use a button group to manage mutually exclusive toggle buttons.

Table

Use the table button to create a table component. Refer to the uitable function for more information on using this component.

Axes

Axes enable your GUI to display graphics such as graphs and images. Like all graphics objects, axes have properties that you can set to control many aspects of its behavior and appearance.

Panel

Panels arrange GUI components into groups. By visually grouping related controls, panels can make the user interface easier to understand. A panel can have a title and various borders.

Panel children can be user interface controls and axes as well as button groups and other panels. The position of each component within a panel is interpreted relative to the panel. If you move the panel, its children move with it and maintain their positions on the panel.

Button Group

Button groups are like panels but are used to manage exclusive selection behavior for radio buttons and toggle buttons.

Create Toolbars for GUIDE GUIs

You can create toolbars containing push buttons and toggle buttons. Use the GUIDE Toolbar Editor to create toolbar buttons. Choose between predefined buttons, such as Save and Print, and buttons that you customize with your own icons and callbacks.

ActiveX Component

ActiveX® components enable you to display ActiveX controls in your GUI. They are available only on the Microsoft® Windows® platform.

An ActiveX control can be the child only of a figure, i.e., of the GUI itself. It cannot be the child of a panel or button group.

Was this topic helpful?