How do you enable a GUI to adjust to fit screens of varying resolution
15 次查看(过去 30 天)
显示 更早的评论
I created a GUI in Guide and I want my GUI to adjust to fit screens of different varying resolution, because my application will be used on different computers.
Is there a way to allow this guide? If so, how?
or
Is there a few lines of code need to enable this feature? If so, where can i find examples of the code?
Thank you in advance,
Cordelle
0 个评论
采纳的回答
Tom
2013-7-1
In GUIDE, under Tools -> GUI options you can specify the resizing of the figure, including your own resize function.
7 个评论
Tom
2013-7-1
You can set the figure size to the screensize:
set(handles.figure1,'Units','Pixels','Position',get(0,'ScreenSize'))
And from there resize the objects of the GUI.
更多回答(1 个)
Panu Pratumnopharat
2017-1-1
编辑:Walter Roberson
2017-1-1
GUI = figure('Color',[0.941 0.941 0.941],...
'Name','HAWTsimulator',...
'NumberTitle','off',...
'MenuBar','none',...
'Unit','normalized',...
'Position',[0 0 1 1],...
'outerposition',[0 0 1 1]);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!