Hide uipanel at application load

10 ビュー (過去 30 日間)
Víctor
Víctor 2013 年 10 月 16 日
回答済み: Víctor 2013 年 10 月 16 日
Hello, This is my first GUI application in Matlab and I want to use several forms in it. I think the best solution is using a uipanel for each form and hide/show them. I set the visible properties to Off in the OpeningFcn event, but, I don´t know why, before hiding the back panels they´re visible for a moment (just miliseconds, but it´s an awful visual effect). Any help would be appreciate. Thank you very much in advance.
Víctor

回答 (1 件)

Víctor
Víctor 2013 年 10 月 16 日
I answer myself: You have to set every control property to 'Off' in the panel.
set(findall(handles.uipanel1,'Visible','On'),'Visible','Off'); set(handles.uipanel1,'Visible','Off'); set(handles.uipanel2,'Visible','On');

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by