Contenu principal

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Développer des applications de manière programmatique

Développer des applications de manière programmatique avec les fonctions MATLAB®

Concevez et modifiez des applications de manière programmatique en codant leur mise en page et leur comportement avec les fonctions MATLAB. Utilisez cette méthode si vous souhaitez contrôler plus précisément la structure de votre code. Pour une introduction, consultez Create and Run a Simple Programmatic App.

Fonctions

développer tout

uifigureCreate figure for designing apps
uigridlayoutCreate grid layout manager
uipanelCreate panel container
uitabgroupCreate container for tabbed panels
uitabCreate tabbed panel
uiaxesCreate UI axes for plots in apps
axesCreate Cartesian axes
geoaxesCreate geographic axes
polaraxesCreate polar axes

Composants courants

uibuttonCreate push button or state button component
uibuttongroupCreate button group to manage radio buttons and toggle buttons
uicheckboxCreate check box component
uicolorpickerCreate color picker component (depuis R2024a)
uidatepickerCreate date picker component
uidropdownCreate drop-down component
uieditfieldCreate text or numeric edit field component
uihyperlinkCreate hyperlink component (depuis R2021a)
uiimageCreate image component
uilabelCreate label component
uilistboxCreate list box component
uiradiobuttonCreate radio button component
uisliderCreate slider or range slider component
uispinnerCreate spinner component
uitable Create table user interface component
uitextareaCreate text area component
uitogglebuttonCreate toggle button component
uitreeCreate tree or check box tree component
uitreenodeCreate tree node component

Outils pour les figures

uicontextmenuCreate context menu component
uimenuCreate menu or menu items
uipushtoolCreate push tool in toolbar
uitoggletoolCreate toggle tool in toolbar
uitoolbarCreate toolbar in figure

Composants d’instrumentation

uigaugeCreate gauge component
uiknobCreate knob component
uilampCreate lamp component
uiswitchCreate slider switch, rocker switch, or toggle switch component

Composants extensibles

uihtmlCreate HTML UI component

Thème graphique

themeSet or get graphics theme (depuis R2025a)
fliplightnessDarken light colors and lighten dark colors (depuis R2025a)

Style

uistyleCreate style for UI component
addStyleAdd style to UI component
removeStyleRemove style from UI component

Contrôle

expandExpand tree node
collapseCollapse tree node
moveMove tree node
openOpen context menu at location within UI figure
focusGive focus to UI component (depuis R2022a)
scrollScroll to location within UI component
isInScrollViewDetermine if component is visible in scrollable container (depuis R2022a)
sendEventToHTMLSourceSend HTML UI component event from MATLAB to JavaScript (depuis R2023a)

Disposition des composants (layout)

uistackReorder visual stacking of UI components
moveguiMove figure to specified location on screen

Exécution de programme

uiwaitBlock program execution and wait to resume
uiresumeResume execution of suspended program
waitforBlock execution and wait for condition

Données de l’application, paramètres et polices

getappdataRetrieve application data
setappdataStore application data
isappdataDetermine if application data exists
rmappdataRemove application data
uigetpref Create dialog box that opens according to user preference
uisetprefManage preferences used in uigetpref
listfontsList available system fonts

Alerte et confirmation

uialertDisplay alert dialog box
uiconfirmCreate confirmation dialog box
uiprogressdlgCreate progress dialog box

Entrée

uisetcolorOpen color picker
uisetfontOpen font selection dialog box
inputdlgCreate dialog box to gather user input
listdlgCreate list selection dialog box

Système de fichiers

uigetfileOpen file selection dialog box
uiputfileOpen dialog box for saving files
uigetdirOpen folder selection dialog box
uiopenOpen file selection dialog box and load selected file into workspace
uisaveOpen dialog box for saving variables to MAT-file

Propriétés

développer tout

FigureFigure window
GridLayoutGrid layout manager UI container
PanelPanel UI container
TabGroup Tab group UI container
Tab Tab UI container
UIAxes PropertiesUI axes appearance and behavior
Axes Properties Axes appearance and behavior
GeographicAxes PropertiesGeographic axes appearance and behavior
PolarAxes PropertiesPolar axes appearance and behavior

Composants courants

ButtonButton UI component
ButtonGroupButton group UI container
CheckBoxCheck box UI component
CheckBoxTreeCheck box tree UI component (depuis R2021a)
ColorPickerColor picker UI component (depuis R2024a)
DatePickerDate picker UI component
DropDownDrop-down UI component
EditFieldEdit field UI component
HyperlinkHyperlink UI component (depuis R2021a)
ImageImage UI component
LabelLabel UI component
ListBoxList box UI component
NumericEditFieldNumeric edit field UI component
ProgressDialogProgress dialog box
RadioButtonRadio button UI component
RangeSliderRange slider UI component (depuis R2023b)
SliderSlider UI component
SpinnerSpinner UI component
StateButtonState button UI component
TableTable UI component
TextAreaText area UI component
ToggleButtonToggle button UI component
TreeTree UI component
TreeNodeTree node UI component

Outils pour les figures

ContextMenuContext menu UI component
MenuMenu UI component
PushToolPush tool UI component
ToggleToolToggle tool UI component
ToolbarToolbar UI component

Composants d’instrumentation

DiscreteKnobDiscrete knob UI component
GaugeGauge UI component
KnobKnob UI component
LampLamp UI component
LinearGaugeLinear gauge UI component
NinetyDegreeGaugeNinety-degree gauge UI component
RockerSwitchRocker switch UI component
SemicircularGaugeSemicircular gauge UI component
SwitchSwitch UI component
ToggleSwitchToggle switch UI component

Composants extensibles

HTMLHTML UI component
Style PropertiesStyle for UI component

Rubriques

Découvrir les fondamentaux de la création programmatique d’applications

Personnaliser l’apparence des applications

Programmer le comportement des applications

Informations connexes