Setting the GUI window always at center
조회 수: 26 (최근 30일)
이전 댓글 표시
Hi
I am trouble with setting my GUI window at the center of the computer screen whenever i click on the 'run' button to start the program. May I know is there a easy way to preset it in the OpeningFcn of the code?
댓글 수: 0
채택된 답변
Sean de Wolski
2013년 3월 28일
doc movegui
And:
movegui(gcf,'center')
댓글 수: 5
JZH
2018년 1월 4일
hey Sean, I got the following error, and it seems like movegui doesn't support GUI designed in app designer?
movegui(app.ELD_GUI, 'center') Error using matlab.ui.Figure/set Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer. Error in movegui (line 278) set(fig, 'OuterPosition', newpos);
Jessa Juarez
2021년 10월 21일
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!