how to set the frame of app designer
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
Nicolas B.
2019-10-29
What do you mean by "in front of screen"? Do you mean that you want to force the app to be in fullscreen mode?
采纳的回答
Subhadeep Koley
2019-11-1
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 个评论
Subhadeep Koley
2019-11-1
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!