Resize automatically GUI to screen resolution
2 views (last 30 days)
Show older comments
Hello guys,
I made a GUI through Guide and a script linked to it. This GUI was based on a 1080p screen resolution but I would like to resize this automatically depending on the user screen resolution. Not only the overall shape, but also the text, axes, and other elements, is it even possible?
Thanks! :)
0 Comments
Answers (1)
Image Analyst
on 31 Mar 2015
See my attached function (thanks to Yair Altman) for the best way. Make sure all the 'units' properties of all the controls on your gui are set to 'normalized'.
Or else make it the screen size, but without maximizing, by doing this:
% Enlarge figure to full screen, but not actually officially maximized.
set(gcf, 'Units', 'Normalized', 'Outerposition', [0, 0, 1, 1]);
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!