How to make visible static text by clicking on check box?
7 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!