How is DefaultFigurePosition set for apps?

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?

 Respuesta aceptada

Rishabh Singh
Rishabh Singh el 8 de Oct. de 2021

0 votos

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 comentario

Matt J
Matt J el 8 de Oct. de 2021
Editada: Matt J el 8 de Oct. de 2021
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.

Productos

Versión

R2020a

Preguntada:

el 4 de Oct. de 2021

Editada:

el 8 de Oct. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by