"Matt " <firstname.lastname@example.org> wrote in message <email@example.com>... > 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
You can't. Uicontrols are always on top of uipanels and axes. Try just settings the static text's visible property to "off" so it disappears when the panel appears.