アプリのウインドウを​前面に持ってくるには​どうすればよいですか​?

19 views (last 30 days)
Yuichi Gomi
Yuichi Gomi on 19 Dec 2022
Commented: Yuichi Gomi on 20 Dec 2022
App Designerでアプリ上にボタンを設置し、ボタンのコールバックでuigetfileを呼び出してmatファイルを読み込むと、uigetfileのダイアログの「開く」を押した時点で毎回アプリが他のウインドウの背面に隠れてしまいます。
アプリを最前面にしたままにする、もしくは背面に隠れてしまったアプリを最前面に戻す方法はありますか?

Accepted Answer

Hernia Baby
Hernia Baby on 20 Dec 2022
  3 Comments
Hernia Baby
Hernia Baby on 20 Dec 2022
R2018aでのお話なのですね
コマンドの後に
drawnow;
figure(app.UIFigure)
を入れてみるのはどうでしょうか?
Yuichi Gomi
Yuichi Gomi on 20 Dec 2022
意図通り前面に戻ってくるようになりました。ありがとうございます!

Sign in to comment.

More Answers (0)

Categories

Find more on App Designer を使用したアプリ開発 in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!