Azzera filtri
Azzera filtri

Panel will not "bring to front"

11 visualizzazioni (ultimi 30 giorni)
Matt
Matt il 2 Gen 2013
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

Risposta accettata

Sean de Wolski
Sean de Wolski il 2 Gen 2013
Modificato: Sean de Wolski il 2 Gen 2013
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.

Più risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by