Programmatic Components

The following table describes the available components and the function used to create each programmatically.






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

Check Box


Axes enable your UI to display graphics such as graphs and images.


Button Groups


Button groups are like panels, but are used to manage exclusive selection behavior for radio buttons and toggle 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.

Editable Text Field


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

List Box


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



Panels arrange UI 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.

Pop-Up Menu


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

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.

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.



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.

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.



Tables contain rows of numbers, text strings, and choices grouped by columns. They size themselves automatically to fit the data they contain. Rows and columns can be named or numbered. Callbacks are fired when table cells are selected or edited. Entire tables or selected columns can be made user-editable.

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 radio buttons.

Toolbar Buttons

uitoolbar, uitoggletool, uipushtool

Non-modal UIs can display toolbars, which can contain push buttons and toggle buttons, identified by custom icons and tooltips.

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.

Was this topic helpful?