Resize automatically GUI to screen resolution
    2 ビュー (過去 30 日間)
  
       古いコメントを表示
    
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 件のコメント
回答 (1 件)
  Image Analyst
      
      
 2015 年 3 月 31 日
        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 件のコメント
参考
カテゴリ
				Help Center および File Exchange で Interactive Control and Callbacks についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!