imgbutton

Version 1.0.0.0 (1,55 ko) par Daniel
IMGBUTTON returns a uicontrol that toggles two images to indicate state.
210 téléchargements
Mise à jour 9 juil. 2013

Afficher la licence

HB = IMGBUTTON(H,CDATA) returns a handle to a uicontrol in parent H where
the two-element cell array CDATA contains image data to indicate the off
and on states of the button.

IMGBUTTON(...,'PROP1',VAL1,'PROP2',VAL2,...) sets the other properties of
the uicontrol.

For some reason, the buttons do not seem to work in uibuttongroups as
expected.

Only works for checkbox, radiobutton and togglebutton styles.

Example:
cdata = {imread('off.png'),imread('on.png')};
hbtn = imgbutton(gcf,cdata,'position',[0 0 50 50]);

Citation pour cette source

Daniel (2024). imgbutton (https://www.mathworks.com/matlabcentral/fileexchange/42555-imgbutton), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2009a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0