How can I keep my app in front on the screen?

18 ビュー (過去 30 日間)
Gavin
Gavin 2024 年 10 月 24 日
コメント済み: Gavin 2025 年 1 月 21 日 20:28
When certain functions are called such as uigetfile() or uigetdir() after the file or directory is chosen the AD generated app goes behind other windows that may be on the screen. How can I bring it back to the front?
figure(app.MyApp);
didn't work.
Also pressing enter rather than mouse clicking to get the default can result in the next popup query [ uiconfirm() or uigetfile() ] coming up behind the application and thus not responding to the enter key. Focus has been lost!
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 10 月 25 日
A few other people have reported this problem.
Unfortunately I do not recall any solutions having been posted.

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

回答 (1 件)

Taylor
Taylor 2024 年 10 月 28 日
In App Designer, select your UIFigure in the component browser. set the WindowStyle to "alwaysontop".
Alternatively, you can use the focus command.
  1 件のコメント
Gavin
Gavin 2025 年 1 月 21 日 20:28
This makes the problem much worse. The app stays on top and all uiget... popups come up behind the uifigure.
Can't even kill it with CTRL-ALT-DEL since Taskmanager gets pushed behind as soon as it comes up.
With a query open there is no way to stop the app. ApD, Command Window, all are locked out!

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

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by