How is DefaultFigurePosition set for apps?

6 次查看(过去 30 天)
I have set my DefaultFigurePosition to a particular setting. Ordinary plot figure windows obey the setting, opening in the desired location. However, apps (both from GUIDE and appDesigner) open at a different location. Where is the default figure position of app figure windows controlled from?

采纳的回答

Rishabh Singh
Rishabh Singh 2021-10-8
Possible workaround for this would be by using “Component Browser” to set the “Position” parameters for “app.UIFigure”.
Additionally, you can also set the position using
set (app_instance.UIFigure , 'Position', [20, 20, 640, 480]);
All the above methods will set the “position” for the current App only.
Hope this helps.
  1 个评论
Matt J
Matt J 2021-10-8
编辑:Matt J 2021-10-8
Thanks. Any idea what to do for GUIDE apps?
I tried putting,
set(hObject,'Position',___)
in the OpeningFcn, but it seems to get overriden by gui_mainfcn.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by