Check if an element is enabled or not in GUI

5 vues (au cours des 30 derniers jours)
Daniele Morello
Daniele Morello le 22 Sep 2015
Commenté : Daniele Morello le 22 Sep 2015
hi everyone, i would to know if is possible to check if an element is enabled or not in GUI. i need something like:
if "element is enabled"
.....
.....
end

Réponse acceptée

Image Analyst
Image Analyst le 22 Sep 2015
enableString = get(handles.button1, 'Enable');
isEnabled = strcmp(lower(enableString), 'on');

Plus de réponses (0)

Catégories

En savoir plus sur Variables dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by