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
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
Allen 2022-10-10
@Smith Smith, you might try using uiopen in lieu of uigetfile. Otherwise, I would suggest reinstalling MATLAB.

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by