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

3 ビュー (過去 30 日間)
Lolipop
Lolipop 2015 年 1 月 11 日
コメント済み: Lolipop 2015 年 1 月 11 日
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

採用された回答

Image Analyst
Image Analyst 2015 年 1 月 11 日
編集済み: Image Analyst 2015 年 1 月 11 日
checkboxValue = get(handles.checkbox1, 'value')
if checkboxValue
set(handles.text1, 'Visible', 'on');
else
set(handles.text1, 'Visible', 'off');
end
  1 件のコメント
Lolipop
Lolipop 2015 年 1 月 11 日
That's what I was looking for!
Thank you so much :D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by