h = uipanel()
h = uipanel(parent)
h = uipanel(..., propertyName, propertyValue)
| Paramètre | Description |
|---|---|
| parent | conteneur parent (uifigure, figure, uipanel, uitab, uibuttongroup, uigridlayout). |
| propertyName, propertyValue | paires nom-valeur. |
| Paramètre | Description |
|---|---|
| h | objet conteneur. |
p = uipanel crée un panneau dans une nouvelle figure (uifigure). Un panneau regroupe des composants UI ; les enfants sont positionnés relativement au panneau. Propriétés principales : Title, TitlePosition ('lefttop', 'centertop', 'righttop'), BackgroundColor, ForegroundColor, BorderType ('line', 'none'), BorderWidth, BorderColor, Position, Scrollable, AutoResizeChildren, SizeChangedFcn.
f = uifigure('Visible', 'off', 'Name', 'Panel', 'Position', [100 100 420 260]);
p = uipanel(f, 'Title', 'Settings', 'Position', [80 45 260 170]);
uicheckbox(p, 'Text', 'Enabled', 'Value', true, 'Position', [25 95 120 24]);
uibutton(p, 'Text', 'Apply', 'Position', [25 45 100 28]);
drawnow();
f = uifigure();
p = uipanel(f, 'Title', 'Options', 'Position', [20 20 260 221]);
b = uibutton(p, 'Text', 'OK', 'Position', [20 20 100 22]);
| Version | Description |
|---|---|
| 2.0.0 | version initiale |