How to put an app in foreground from background

13 vues (au cours des 30 derniers jours)
endystrike
endystrike le 3 Sep 2020
Hi everyone,
until MatLab 2019a I used to put this code into the script of AppDesigner to put from background to foreground an app, but unfortunately in 2020a it doesn't work anymore...
% Toggles figure visible. These two lines of code work-around an issue whether the figure is sent to the background.
app.MainApp.Visible = 'off';
app.MainApp.Visible = 'on';
Has someone found a solution to do the same in 2020a version?
Thanks a lot!

Réponse acceptée

Nikita Agrawal
Nikita Agrawal le 3 Sep 2020
You could use :
...
filename = uigetfile(...);
app.UIFigure.Visible = 'on';
..
Hope this helps!

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by