How to disable title of ButtonGroup

5 ビュー (過去 30 日間)
David K
David K 2021 年 1 月 26 日
コメント済み: David K 2021 年 1 月 29 日
I have an app I've created using App Designer. Included is a Button Group that I would like to Enable and Disable with a checkbox. So far this is pretty straightforward. I can disable everything in the ButtonGroup using set(app.ButtonGroup.children,'enable','off'); However, this disables everything except for the title of the button group. This results in a grayed out box with a black font title. How can I disable the title as well, or at least change the font color so it looks disabled?
It's worth noting that this machine doesn't have the latest version, so I can't use ButtonGroup.Enable

採用された回答

Rashed Mohammed
Rashed Mohammed 2021 年 1 月 29 日
Hi David,
You can change the ForegroundColor property of the ButtonGroup to make it appear as disabled.
Hope this helps!
  1 件のコメント
David K
David K 2021 年 1 月 29 日
That's perfect, thanks! Any idea what color the default disabled text is? I tried [0.7 0.7 0.7] which is close enough to not be noticeably different, but I'd rather be exact if possibly.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by