Panel will not "bring to front"
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!