uigetfile called in app designer open the file dialog screen behind the calling .mlapp

5 ビュー (過去 30 日間)
Smith Smith
Smith Smith 2022 年 5 月 28 日
回答済み: Allen 2022 年 10 月 10 日
The following code placed in app designer with MATLAB 2022a opens the file dialog screen behind the calling .mlapp. The calling .mlapp simply has a button on the screen that calls the following code.
function ButtonPushed(app, event)
[f,p] = uigetfile();
end
There are several posts about the calling app losing focus AFTER uigetfile is called. This is a different problem. Is there a way to open the file diaglog screen in front of the calling app?
  7 件のコメント
Jeff
Jeff 2022 年 10 月 8 日
Same question.
Mario Malic
Mario Malic 2022 年 10 月 8 日
there is a an answer somewhere on this forum from Friedrich IIRC, just do
drawnow;
figure(UIFigure);
after uigetfile and it should be fine.

サインインしてコメントする。

回答 (1 件)

Allen
Allen 2022 年 10 月 10 日
@Smith Smith, you might try using uiopen in lieu of uigetfile. Otherwise, I would suggest reinstalling MATLAB.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by