Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the 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

figure Create figure window
axes Create axes graphics object
uicontrol Create user interface control object
uitable Create table user interface component
uipanel Create panel container object
uibuttongroup Create button group to manage radio buttons and toggle buttons
uitab Create tabbed panel
uitabgroup Create container for tabbed panels
uimenu Create menus and menu items on figure windows
uicontextmenu Create context menu
uitoolbar Create toolbar on figure
uipushtool Create push button on toolbar
uitoggletool Create toggle button on toolbar
actxcontrol Create Microsoft ActiveX control in figure window
align Align UI components and graphics objects
movegui Move UI figure to specified location on screen
getpixelposition Get component position in pixels
setpixelposition Set component position in pixels
listfonts List available system fonts
textwrap Wrap text for uicontrol
uistack Reorder visual stacking order of objects
inspect Open Property Inspector

Properties

Uicontrol Properties Control appearance and behavior of user interface control
Uitable Properties Control appearance and behavior of table
Uimenu Properties Control appearance and behavior of menu
Uicontextmenu Properties Control appearance and behavior of context menu
Uipushtool Properties Control appearance and behavior of uipushtool
Uitoggletool Properties Control appearance and behavior of uitoggletool
Figure Properties Control appearance and behavior of figure window
Axes Properties Control axes appearance and behavior
Uipanel Properties Control appearance and behavior of panel
Uibuttongroup Properties Control appearance and behavior of button group
Uitab Properties Control appearance and behavior of tabbed panel
Uitabgroup Properties Control appearance and behavior of tabbed panel container
Uitoolbar Properties Control 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?