How do I prevent minimizing Matlab windows after calling uigetdir?

22 vues (au cours des 30 derniers jours)
Daniel Lee
Daniel Lee le 6 Déc 2017
Commenté : Clark le 27 Mai 2024
Just to clarify, this part of my code works. However, when I run the mlapp and use the function that uses uigetdir, after I select the folder, all Matlab windows minimize. Is there a solution?
Thank you for your help.
  1 commentaire
Michal Dobai
Michal Dobai le 9 Déc 2017
I think this could be the same problem as: Appdesigner window ends up in background after uigetfile
I'm struggling with the same thing in my app. Right now I'm using Chris McRaven's workaround from above mentioned link; set visibility of figure to 'off' and then 'on' again. It's not the best solution, because window will still blink for a brief moment, but it's still better than nothing.

Connectez-vous pour commenter.

Réponse acceptée

Prasobhkumar P. P.
Prasobhkumar P. P. le 7 Sep 2020
Modifié(e) : Prasobhkumar P. P. le 7 Sep 2020
Even thought this is not the correct solution. But it will work.
[file, path]= uigetfile('*.*');
fN = fullfile(path,file);
figure(app.UIFigure); % magic command :)
  1 commentaire
Clark
Clark le 27 Mai 2024
nice! At least solve my problem when using uigetfile in app designer.tks a lot

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Dialog Boxes dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by