uigetfile called in app designer open the file dialog screen behind the calling .mlapp
조회 수: 4 (최근 30일)
이전 댓글 표시
The following code placed in app designer with MATLAB 2022a opens the file dialog screen behind the calling .mlapp. The calling .mlapp simply has a button on the screen that calls the following code.
function ButtonPushed(app, event)
[f,p] = uigetfile();
end
There are several posts about the calling app losing focus AFTER uigetfile is called. This is a different problem. Is there a way to open the file diaglog screen in front of the calling app?
댓글 수: 7
Mario Malic
2022년 10월 8일
there is a an answer somewhere on this forum from Friedrich IIRC, just do
drawnow;
figure(UIFigure);
after uigetfile and it should be fine.
답변 (1개)
Allen
2022년 10월 10일
@Smith Smith, you might try using uiopen in lieu of uigetfile. Otherwise, I would suggest reinstalling MATLAB.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Downloads에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!