Hide the uifigure window for uiprogressdlg / I want to hide the uifigure window with only uiprogressdlg left.

fig = uifigure("WindowStyle",'modal',"Interruptible","on");
d = uiprogressdlg(fig,"Cancelable",'on',...
'Indeterminate','on');
I want to hide the figure window with only uiprogressdlg left.
I want ...
How can I do?

Answers (1)

To display only the "uiprogressdlg" and hide the parent "uifigure", we can follow the below method:
fig = uifigure(...);
d = uiprogressdlg(fig, ...);
fig.Visible = 'off'; % Hide the underlying figure
drawnow; % Ensure UI updates
close(d);
fig.Visible = 'on'; % Show it again if needed
This quickly removes the figure window, leaving the progress dialog visible.
You can also refer to the below MATLAB Answers post to know more alternatives regarding the same: https://www.mathworks.com/matlabcentral/answers/498896-how-to-control-ui-progress-dialog-box-uiprogressdlg-size-and-position
I hope this helps!

1 Comment

I doubt you tested your code before posting it. It's useless. Everything is hidden and even invisible to the systme's window manager.

Sign in to comment.

Categories

Find more on Develop Apps Programmatically in Help Center and File Exchange

Products

Release

R2020b

Asked:

on 7 Apr 2021

Commented:

on 13 Jan 2026

Community Treasure Hunt

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

Start Hunting!