how to set the frame of app designer
9 views (last 30 days)
Show older comments
xianhui zhang
on 29 Oct 2019
Commented: Subhadeep Koley
on 1 Nov 2019
when i run a APP, i want to set the app in front of screen. which parameter of APP can be changed to achieve my requirement?
2 Comments
Nicolas B.
on 29 Oct 2019
What do you mean by "in front of screen"? Do you mean that you want to force the app to be in fullscreen mode?
Accepted Answer
Subhadeep Koley
on 1 Nov 2019
For MATLAB R2018a and later versions you can use the figure command to focus your app on top of all windows.
Use the code below to achieve what you want.
Go to "UIFigure > callbacks > startupFcn callback" and paste the following code
drawnow; % Put all your startup code before this line
figure(app.UIFigure);
app.UIFigure.WindowState = 'maximized'; % If your window to be maximized
Hope this helps!
2 Comments
Subhadeep Koley
on 1 Nov 2019
Then just delete this line
app.UIFigure.WindowState = 'maximized';
In this way you can run your app in normal window and in the top layer.
More Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!