Filter löschen
Filter löschen

How is DefaultFigurePosition set for apps?

5 Ansichten (letzte 30 Tage)
Matt J
Matt J am 4 Okt. 2021
Bearbeitet: Matt J am 8 Okt. 2021
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?

Akzeptierte Antwort

Rishabh Singh
Rishabh Singh am 8 Okt. 2021
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 Kommentar
Matt J
Matt J am 8 Okt. 2021
Bearbeitet: Matt J am 8 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by