Setting the GUI window always at center
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
William
am 28 Mär. 2013
Kommentiert: Jessa Juarez
am 21 Okt. 2021
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 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 28 Mär. 2013
doc movegui
And:
movegui(gcf,'center')
5 Kommentare
JZH
am 4 Jan. 2018
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
am 21 Okt. 2021
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!