필터 지우기
필터 지우기

GUI screen size problem

조회 수: 2 (최근 30일)
eyal lampel
eyal lampel 2015년 9월 21일
댓글: Joseph Cheng 2015년 9월 21일
Hi,
I created GUI with GUIDE on a computer, and now, I open my GUI files (fig) on another computer and I can't see the at least the half top of my GUI. The two computers have the same resolution (1900 x 1080). Please, could someone give a hint how to resolve that ? I need to go back and forth between the two computers. I changed to Characters everything, none. To pixels, none. To Normalized, none. My GUI is still out the screen Thank you.
  댓글 수: 2
Walter Roberson
Walter Roberson 2015년 9월 21일
Does the one that there is a problem have dual screens?
Which operating system is being used?
Joseph Cheng
Joseph Cheng 2015년 9월 21일
to debug it a bit i'd stick in
disp(get(hObject,'position'))
in the OpeningFcn to see where both computers put the GUI. if anything you can force the GUI to open on a certain position with
pos = get(hObject,'position');
set(hObject,'position',[0 0 pos(3:4)]);
which will load it into the lower left corner but keep the same height and width. substitute the [ 0 0] with an offset that should make it center if that's what you want.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by