How do I position a GUI created using GUIDE at a particular place on the screen?
6 views (last 30 days)
Show older comments
I use GUIDE to build a GUI. GUIDE places the GUI in a default position which is the center of the screen. I would like to change the GUI's default position.
Accepted Answer
MathWorks Support Team
on 21 Jan 2010
You can position the GUI at a particular place on the screen by adjusting the GUI’s "Position" property in the program file corresponding to the GUI. For example:
set( hObject , 'Units' , 'normalized' )
figureposition = get( hObject , 'Position' ) ;
set( hObject , 'Position' , ...
[ (1-figureposition(3))/2 , 0.98-figureposition(4) , ...
figureposition(3) , figureposition(4) ] )
positions the GUI at the left top corner of the screen.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!