how to un-enable a tab in a tab group in a gui

23 ビュー (過去 30 日間)
Jeff Owen
Jeff Owen 2024 年 12 月 8 日 17:27
コメント済み: Jeff Owen 2024 年 12 月 9 日 0:13
I want to be able to enable or un-enable an entire tab. I don't see a way to do that. You can with Edit Fields, Text boxes, and other fields/objects. The other fields have check boxes for Visible, Editable, and Enable, but the Tab does not. Do I have to put everything in that tab into a panel and un-able that (to be enabled at a later time)?

採用された回答

Anjaneyulu Bairi
Anjaneyulu Bairi 2024 年 12 月 8 日 19:22
In MATLAB App Designer, you can enable or disable entire "TabGroup", but you cannot directly enable or disable a tab itself as you would with individual UI components. But,you can achieve similar functionality by disabling the all UI components in the individual tab by programmatically or organizing the components within the tab into a container, such as a "Panel", and then enabling or disabling that "Panel".
  1 件のコメント
Jeff Owen
Jeff Owen 2024 年 12 月 9 日 0:13
Thank you. I appreciate your suggestion. After submitting, I searched and saw an earlier post about the same issue. I'd really like the tab to show, but greyed out. I think Mathworks should bring back the 'enable' of a tab that evidently disappeared in r2020a.

サインインしてコメントする。

その他の回答 (1 件)

Strider
Strider 2024 年 12 月 8 日 19:08
I believe I have tried to do the same thing as you with no luck.
An option I settled on is to put everything on your tab in a reusable component and programmatically create or delete your tab.
When you create the tab you can assign the parent (ui panel on the tab) of a reusable component upon construction.
  1 件のコメント
Jeff Owen
Jeff Owen 2024 年 12 月 8 日 23:59
Thank you. I appreciate your suggestion. I might go with the one below for now because it's more at my basic level. I'd really like the tab to show, but greyed out. I think Mathworks should bring back the 'enable' of a tab that evidently disappeared in r2020a.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by