Panel will not "bring to front"

4 ビュー (過去 30 日間)
Matt
Matt 2013 年 1 月 2 日
I have a GUI and I would like to (upon key-press) make a panel appear over the GUI. The only problem I am having is that I can't seem to make this panel be above static text.
%keypress
uistack(handles.mypanel,'top');
set(handles.mypanel,'visible','on');
As I stated, this code works, and brings the panel above everything except static text. Does anyone know of a solution or workaround to make the panel truly be on top? Thanks.
-Matt

採用された回答

Sean de Wolski
Sean de Wolski 2013 年 1 月 2 日
編集済み: Sean de Wolski 2013 年 1 月 2 日
The way I would go about this is by setting the textbox uicontrol's 'Parent' to be another uipanel. Then when you turn the new uipanel's visibility on, turn the other uipanel's visbility off.
That's how some of these work:
Of course, if the one textbox is the only thing you don't want to see, simply turn its visibility off.
  1 件のコメント
Matt
Matt 2013 年 1 月 2 日
Good enough. Thanks!

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

その他の回答 (0 件)

カテゴリ

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