How to disable a panel in GUIDE ?
조회 수: 3 (최근 30일)
이전 댓글 표시
i have a panel with a no. of push buttons and other test fields, and i want to disable them till a radio button is selected; So, how can disable an entire panel without going for each component and disable them separately ??
I am using Matlab 2011a.
댓글 수: 1
Eric Sargent
2020년 12월 9일
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.
채택된 답변
Walter Roberson
2012년 3월 14일
You could set() the entire uipanel to have Visible 'off'
But if you want the panel to be still visible, then
set(findall(PanelHandle, '-property', 'enable'), 'enable', 'off')
댓글 수: 15
추가 답변 (1개)
Eric Sargent
2020년 12월 9일
As of R2020b ButtonGroup and Panel both support Enable when the button group or panel is parented to a uifigure.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!