Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Components and Layout

Lay out UIs with components such as buttons, sliders, and text

UI component functions create interactive components for your app. You can modify the appearance and behavior of a particular component by changing certain property values. Layout functions modify certain aspects of your design, such as the alignment or the visual stacking order of components.

Functions

figureCreate figure window
axesCreate Cartesian axes
uicontrolCreate user interface control object
uitable Create table user interface component
uipanelCreate panel container object
uibuttongroupCreate button group to manage radio buttons and toggle buttons
uitabCreate tabbed panel
uitabgroupCreate container for tabbed panels
uimenuCreate menu or menu items
uicontextmenuCreate context menu
uitoolbarCreate toolbar on figure
uipushtoolCreate push button on toolbar
uitoggletoolCreate toggle button on toolbar
actxcontrolCreate Microsoft ActiveX control in figure window
alignAlign UI components and graphics objects
moveguiMove UI figure to specified location on screen
getpixelpositionGet component position in pixels
setpixelpositionSet component position in pixels
listfontsList available system fonts
textwrapWrap text for uicontrol
uistackReorder visual stacking order of objects
inspectOpen Property Inspector

Properties

UIControl PropertiesControl appearance and behavior of user interface control
Table PropertiesControl appearance and behavior of table UI component
Menu PropertiesControl appearance and behavior of menu
ContextMenu PropertiesControl appearance and behavior of context menu
PushTool PropertiesControl appearance and behavior of push tool
ToggleTool PropertiesControl appearance and behavior of toggle tool
Figure PropertiesControl appearance and behavior of figure window
Axes PropertiesControl axes appearance and behavior
Uipanel PropertiesControl appearance and behavior of panel
Uibuttongroup PropertiesControl appearance and behavior of button group
Uitab PropertiesControl appearance and behavior of tab
Uitabgroup PropertiesControl appearance and behavior of tab group
Toolbar PropertiesControl appearance and behavior of tool bar

Topics

Create Apps Using GUIDE

Add Components to the GUIDE Layout Area

Learn how to add, move, copy, paste, duplicate, and resize components. Add identifiers to components using the Tag property.

Create Menus for GUIDE Apps

Learn how to create context menus and menus in the menu bar using GUIDE.

Create Toolbars for GUIDE UIs

Learn how to add and edit toolbar items using the Toolbar Editor.

Set the UI Window Size in GUIDE

Learn how to set the UI window size, control resize behavior of components, and control the appearance of the GUIDE layout area.

Align GUIDE UI Components

Learn different ways to align UI components.

Customize Tabbing Behavior in a GUIDE UI

Learn how to control tabbing behavior in your app using GUIDE.

Design Cross-Platform UIs in GUIDE

Learn how to create UIs that behave more consistently on different platforms.

Create Apps Programmatically

Add Components to a Programmatic App

Learn how to create and modify UI components programmatically.

Create Menus for Programmatic Apps

Learn how to create context menus and menus in the menu bar programmatically.

Create Toolbars for Programmatic Apps

Learn how to add and edit toolbar items programmatically.

Lay Out a UI Programmatically

Set the size, location, and front-to-back order of components programmatically.

DPI-Aware Behavior in MATLAB

Learn about DPI-aware behavior that improves the appearance of graphical elements on high-resolution systems.

Customize Tabbing Behavior in a Programmatic App

Learn how to control tabbing behavior in your app programmatically.

Was this topic helpful?