Resize automatically GUI to screen resolution
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Image Analyst
el 31 de Mzo. de 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 comentarios
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!