ButtonGroup for HG2
The ButtonGroup controls require the GUI Layout Toolbox by Ben Tordoff and David
Sampson available at:
http://www.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox
The controls in this submissionshould be placed in the +uix folder in the GUI Layout Toolbox or in another folder called +uix that resides under a folder on your path.
Example:
gFig = figure();
gVButtonsBox = uix.VButtonGroup('Parent',gFig, 'Spacing',10,...
'ButtonSize', [200 40], 'ButtonStyle','radio',...
'HorizontalAlignment','left', 'VerticalAlignment','middle');
gVButtonsBox.Buttons = {'Button 1','Button 2', 'Button 3'};
gVButtonsBox.SelectionChangeFcn = {@(gSource,eventdata) disp(gSource.SelectedObject.String)};
Zitieren als
Clym Stock-Williams (2026). ButtonGroup for HG2 (https://de.mathworks.com/matlabcentral/fileexchange/52965-buttongroup-for-hg2), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > App Building >
- MATLAB > Graphics > Graphics Objects > Object Containers >
Tags
Quellenangaben
Inspiriert von: GUI Layout Toolbox
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.2.0.0 | Fixed issue with buttons turning off with multiple presses |
||
| 1.1.0.0 | Slight tidy ups. NB. Any suggestions on how to improve it very welcome |
||
| 1.0.0.0 |
