use "uigetfile" in App Designer

조회 수: 10 (최근 30일)
Lixuan Xing
Lixuan Xing 2019년 7월 25일
편집: Adam Danz 2025년 7월 11일
When i use "uigetfile" command in App Designer, chose a file and click "open", the whole UIFigure will automatically go under the Matlab-mainwindow and all other files . I must choose the UIFigure again to use it. How to solve it problem.
  댓글 수: 1
Paola Martin
Paola Martin 2023년 3월 26일
Could you please explain a little bit more about this problem? i will start doing an app and i was just about to use this command.

댓글을 달려면 로그인하십시오.

채택된 답변

Adam Danz
Adam Danz 2019년 7월 25일
편집: Adam Danz 2025년 7월 11일
Update
This has been fixed in R2025a. Focus now returns to the app that called uigetfile after the dialog is closed. The fix is also available in the R2024a and R2024b beta releases only (not the R2024a and R2024b general releases).
----------------------original response-------------------------
Wow, that's super annoying (I just confirmed it, r2019a). It's happening in the uigetfile() function.
A workaround is to just call your app figure right after the uigetfile() line.
f = uigetfile();
figure(app.UIFigure)
  댓글 수: 6
Thomas Koenig
Thomas Koenig 2022년 12월 2일
I'm waiting for this to be resolved forever now. It seems like nobody cares. Truly disappointing.
Stuart Fogel
Stuart Fogel 2023년 5월 1일
I also have this issue. From what I've read it's (mostly?) specific to Mac. Running R2202b for Mac.
I got tired of how annoying this was from a user-standpoint, so I created an app in appdesigner that duplicates the functionality of uigetfile. Here's a link to the code in the GitHub repo:
It may not be perfect, so please let me know if something is not quite right.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by