uigetfile - forces main gui to go behind other windows

1 vue (au cours des 30 derniers jours)
Jason
Jason le 2 Fév 2024
Commenté : Jason le 2 Fév 2024
Does anyone else suffer from this:
From a GUI created by appdesigner, when you run uigetfile and open a file, the gui goes behind other windows windows that may be open like explorer
This is my code:
[file,path]=uigetfile({'*.xls';'*.txt'},'Load Data',app.startfolder);
filename=fullfile(path,file);
app.startfolder=path;
T = readtable(filename);
Ny main GUI Figure (app.UIFigure) is set so that:
windowstyle =Normal
windowstate=Maximized

Réponse acceptée

Adam Danz
Adam Danz le 2 Fév 2024
  1 commentaire
Jason
Jason le 2 Fév 2024
Thanks, this is whats needed:
figure(app.UIFigure)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by