How to disable a panel in GUIDE ?

31 ビュー (過去 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 件のコメント
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.

カテゴリ

Find more on Maintain or Transition figure-Based Apps in Help Center and File Exchange

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by