uigetdir: bring to front

조회 수: 50 (최근 30일)
George A.
George A. 2017년 4월 2일
편집: Anton Semechko 2021년 2월 18일
I have created an app with appdesigner and added the uigetdir function in a button. When the button is pressed the uigetdir opens the "choose folder window" in the background, i.e., the app figure is in front of uigetdir window.
How can I bring the uigetdir window to the foreground?
Thank you for your help.
  댓글 수: 8
Rene Mayer
Rene Mayer 2018년 7월 1일
I have a similar issue with a call to questdlg from within an app. The questdlg window is created but I cannot see it and all other matlab windows including my main app are locked until I close the questdlg from the Windows bottom of the screen Matlab's list of opened items.
Jan
Jan 2018년 7월 1일
@Rene Mayer: Please post some code, which reproduces the problem and mention your Matlab version.

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

답변 (1개)

Daniel Benalcazar
Daniel Benalcazar 2019년 11월 12일
I had the same problem, but I found online a trick to fix it. Just after calling uigetdir, set the visibility of your app on:
path = uigetdir;
app.UIFigure.Visible = 'on';
  댓글 수: 1
Anton Semechko
Anton Semechko 2021년 2월 18일
편집: Anton Semechko 2021년 2월 18일
In Matlab R2020a this works only if you set app.UIFigure.Visible='off' before calling uigetdir and then set it to app.UIFigure.Visible='on' afterwards.
Another solution is described here: https://www.mathworks.com/matlabcentral/answers/296305-appdesigner-window-ends-up-in-background-after-uigetfile

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

카테고리

Help CenterFile Exchange에서 Dialog Boxes에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by