How to keep GUI interface on top?
15 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ruihai Wang
el 17 de Feb. de 2022
Respondida: Michael
el 4 de Ag. de 2022
I used matlab2021b to design a GUI for loading pictures, but when I select a local file, the GUI will be hidden to the next level of the desktop, why is this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/898125/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/898130/image.png)
0 comentarios
Respuesta aceptada
Abolfazl Chaman Motlagh
el 17 de Feb. de 2022
Editada: Abolfazl Chaman Motlagh
el 17 de Feb. de 2022
after the line that you open a file selector (uigetimagefile for example), use this:
figure(FIGURE);
it will bring up your GUI on top again. use your gui figure name instead of FIGURE. for example if you are using appdesigner use:
figure(app.UIFigure);
Más respuestas (1)
Michael
el 4 de Ag. de 2022
I find that if I am drawing other figures from within a GUI that the GUI starts moving around the screen.
Especially if you are testing and you just throw up a figure and plot something
to fix this -- I do something along the lines of
figure(app.UIFigure); movegui(app.UIFigure, 'west');
0 comentarios
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!