h = uicheckbox()
h = uicheckbox(parent)
h = uicheckbox(..., propertyName, propertyValue)
| Parameter | Description |
|---|---|
| parent | parent container. |
| propertyName, propertyValue | name-value pairs. |
| Parameter | Description |
|---|---|
| h | UI component object. |
cbx = uicheckbox creates a check box with a logical Value, a Text label, WordWrap, fonts and a ValueChangedFcn callback (event data: Value, PreviousValue).
f = uifigure('Visible', 'off', 'Name', 'Check box', 'Position', [100 100 420 260]);
cb = uicheckbox(f, 'Text', 'Enable alerts', 'Value', true, 'Position', [130 120 170 24]);
drawnow();
f = uifigure();
cbx = uicheckbox(f, 'Text', 'Accept', 'Value', true, 'ValueChangedFcn', @(s, e) disp(e.Value));
| Version | Description |
|---|---|
| 2.0.0 | initial version |