Problem with selecting location in appdesigner
Mostra commenti meno recenti
Hi
I am developing an app with appdesigner. one part of it, I have a button that when user clicks on it, a window opens to select a location from his/her PC to save files. This is the code I have written for it:
app.callingapp.path = uigetdir;
The problem is whenever I push this button, after I choose location and push OK, instead of closing the dialog window and go back to the main app window, it jumps into another window which is open in my desktop. For example if there is a Word file or PDF file open, it jumps into that.
Does anyone know how to fix it?
Risposta accettata
Più risposte (1)
colordepth
il 9 Lug 2023
I am able to replicate this issue and tried looking for ways to make it work. As a simple workaround, you can change the focus to the main app window after uigetdir finishes.
app.callingapp.path = uigetdir;
figure(app.UIFigure); % Change focus to your application
1 Commento
Mahdi Hayati
il 10 Lug 2023
Categorie
Scopri di più su Environment and Settings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!