How to disable a panel in GUIDE ?

7 次查看(过去 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
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 中查找有关 Develop uifigure-Based Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by