Resize automatically GUI to screen resolution
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Image Analyst
le 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 commentaires
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!