How to put an app in foreground from background
23 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
採用された回答
Nikita Agrawal
2020 年 9 月 3 日
You could use :
...
filename = uigetfile(...);
app.UIFigure.Visible = 'on';
..
Hope this helps!
1 件のコメント
Nikita Agrawal
2020 年 9 月 3 日
Please find the details here : https://in.mathworks.com/matlabcentral/answers/296305-appdesigner-window-ends-up-in-background-after-uigetfile#answer_427026
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Startup and Shutdown についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!