Can movegui in openfig be disabled?
조회 수: 3 (최근 30일)
이전 댓글 표시
I have a dual-monitor setup with my left (primary) monitor rotated into a portrait orientation, so that the monitor width is only 1024 pixels. I'm trying to run a program that loads a GUI figure that is 1300 pixels wide. When I run the program, the figure gets resized to be only 1014 pixels wide. The culprit appears to be a call to movegui(fig(n),'onscreen') in openfig , which gets called to open the .FIG file. I don't want the figure to be resized; in my extended desktop, the figure would be just fine spilling into the other monitor. Plus, the figure's children's units are not normalized, so important controls are being chopped off the right side of the figure.
For now, I've commented-out the call to movegui on line 109 of openfig . I'm always reluctant to modify Mathworks-supplied files, so I was looking for an alternate method of keeping MATLAB from resizing the figure.
댓글 수: 0
답변 (1개)
Walter Roberson
2014년 4월 24일
GUIDE is an approximation of a GUI creation tool. Sometimes you need to repair the code it generates, such as by commenting out movegui() in your case.
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!