How to set windowstyle modal in APP Designer?

The button named OpenFile ,the callback function is uigetfile.After I click the button,the UIFigure is not in front of my computer screen.In GUIDE,without this problem.
I can't set windowstyle modal in APP Designer.

1 Comment

Type this in callback function to know the windowatyle mode
% if true
% code
% end
get(0,'DefaultFigureWindowStyle')
If it shows docked then you can set it normal using
% if true
% code
% end
set(0,'DefaultFigureWindowStyle' , 'normal')
Or
% if true
% code
%end
set(gcf, 'WindowStyle','normal');

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Asked:

on 11 Sep 2020

Edited:

on 11 Sep 2020

Community Treasure Hunt

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

Start Hunting!