Setting the GUI window always at center
18 ビュー (過去 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!