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

8 visualizzazioni (ultimi 30 giorni)
Gavin
Gavin il 24 Ott 2024
Risposto: Taylor il 28 Ott 2024
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 Commento
Walter Roberson
Walter Roberson il 25 Ott 2024
A few other people have reported this problem.
Unfortunately I do not recall any solutions having been posted.

Accedi per commentare.

Risposte (1)

Taylor
Taylor il 28 Ott 2024
In App Designer, select your UIFigure in the component browser. set the WindowStyle to "alwaysontop".
Alternatively, you can use the focus command.

Categorie

Scopri di più su Environment and Settings in Help Center e File Exchange

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by