MATLAB Answers

How do you enable a GUI to adjust to fit screens of varying resolution

조회 수: 150(최근 30일)
Cordelle 1 Jul 2013
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?
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,

채택된 답변

Tom 1 Jul 2013
In GUIDE, under Tools -> GUI options you can specify the resizing of the figure, including your own resize function.
You might also want to consider this FEX Submission.
  댓글 수: 6
Tom 1 Jul 2013
You can set the figure size to the screensize:
And from there resize the objects of the GUI.

댓글을 달려면 로그인하십시오.

추가 답변(1개)

Panu Pratumnopharat
Panu Pratumnopharat 1 Jan 2017
편집: Walter Roberson 1 Jan 2017
GUI = figure('Color',[0.941 0.941 0.941],...
'Position',[0 0 1 1],...
'outerposition',[0 0 1 1]);

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by