Can movegui in openfig be disabled?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Walter Roberson
am 24 Apr. 2014
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.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!