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.
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?
In that case, there is already a thread for it.
xianhui zhang
xianhui zhang 2019-10-29
I mean let the APP always present in the first place of all running SW interfaces. In other words, let the APP run on the top layer.

请先登录,再进行评论。

采纳的回答

Subhadeep Koley
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 个评论
xianhui zhang
xianhui zhang 2019-11-1
Thanks for your suggestion. But this code will let the APP be in max windowstate. I want APP running on normal window but in thr first layer.
Subhadeep Koley
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 CenterFile 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!

Translated by