h = uitabgroup()
h = uitabgroup(parent)
h = uitabgroup(..., 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. |
tg = uitabgroup crée un groupe d'onglets. Les enfants sont des objets uitab. Propriétés principales : TabLocation ('top', 'bottom', 'left', 'right'), SelectedTab, SelectionChangedFcn (event avec OldValue et NewValue).
f = uifigure('Visible', 'off', 'Name', 'Tab group', 'Position', [100 100 420 260]);
tg = uitabgroup(f, 'Position', [55 40 310 180]);
t1 = uitab(tg, 'Title', 'First');
t2 = uitab(tg, 'Title', 'Second');
tg.SelectedTab = t2;
uilabel(t2, 'Text', 'Second tab', 'Position', [35 70 120 24]);
drawnow();
f = uifigure();
tg = uitabgroup(f, 'Position', [20 20 250 210]);
t1 = uitab(tg, 'Title', 'Premier');
t2 = uitab(tg, 'Title', 'Second');
tg.SelectedTab = t2;
| Version | Description |
|---|---|
| 2.0.0 | version initiale |