How to disable a panel in GUIDE ?

조회 수: 3 (최근 30일)
Avi Pal
Avi Pal 2012년 3월 14일
답변: Eric Sargent 2020년 12월 9일
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
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
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
Image Analyst
Image Analyst 2017년 9월 4일
OK, good. So I assume it's working now.
Walter Roberson
Walter Roberson 2017년 9월 4일
Please post a small example that demonstrates the problem.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Eric Sargent
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.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by