How to make visible static text by clicking on check box?

3 vues (au cours des 30 derniers jours)
Lolipop
Lolipop le 11 Jan 2015
Commenté : Lolipop le 11 Jan 2015
Can anyone tell me how to make visible static text in GUI clicking on check box?
I made check box and static text,but text is visible no matter is check box turned on or off.
Thank you

Réponse acceptée

Image Analyst
Image Analyst le 11 Jan 2015
Modifié(e) : Image Analyst le 11 Jan 2015
checkboxValue = get(handles.checkbox1, 'value')
if checkboxValue
set(handles.text1, 'Visible', 'on');
else
set(handles.text1, 'Visible', 'off');
end
  1 commentaire
Lolipop
Lolipop le 11 Jan 2015
That's what I was looking for!
Thank you so much :D

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by