필터 지우기
필터 지우기

How is DefaultFigurePosition set for apps?

조회 수: 5 (최근 30일)
Matt J
Matt J 2021년 10월 4일
편집: Matt J 2021년 10월 8일
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