AppDesigner UIPanel Hide Visibility

74 ビュー (過去 30 日間)
Ian Hersom
Ian Hersom 2016 年 8 月 13 日
コメント済み: Johannes Rebling 2020 年 1 月 25 日
I have several overlapping UIPanel's in AppDesigner and I want all but one panel to be hidden upon creation of the figure or soon thereafter. AppDesigner doesn't let you edit the constructor for the object and there is no property in the Component Browser for me to edit visibility. There is a .Visible property contained under app.panel.Visible that I believe can be set. Just can't figure out how to initialize this setting automatically without access to the constructor or the app creation.

採用された回答

Swathik Kurella Janardhan
Swathik Kurella Janardhan 2016 年 8 月 16 日
You can edit the startupFcn in the 'Code View' of your AppDesigner to set the Visible property of the panel.
function startupFcn(app)
app.Panel.Visible = 'off';
end
  1 件のコメント
Ian Hersom
Ian Hersom 2016 年 8 月 16 日
Thanks! Do you know if it's possible to use ginput with anapp designer ui axes? I haven't been able to get that to work either.

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

その他の回答 (1 件)

yumeng Jiang
yumeng Jiang 2019 年 10 月 30 日
excuse me ,how to make several overlapping UIPanel's in AppDesigner?? when i drag button or listbox or ...,they always change their parent,they run to the last panel ,thx
  1 件のコメント
Johannes Rebling
Johannes Rebling 2020 年 1 月 25 日
You have to create individual apps if you want independent, overlapping windows.

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

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by