Issues with Guide gui figure transfer

2 views (last 30 days)
Quentin
Quentin on 27 Jan 2014
Commented: Daniel Jiménez on 15 Jul 2015
Hello all,
I wrote a gui using Guide in Matlab R2013b. It is fairly complex and I'd really rather not rewrite it from scratch. It is a gui to acquire data through some NIDAQ's, so naturally I wanted to install it on all of our computers that will run data collection here in the lab. I wrote it on one computer and tried to transfer it to the next. However, I now lose and can't see about half of the gui. I also can't resize it or scroll to see it. The machines are virtually identical with one being an i7 processor and the other an i5. Otherwise, same model Dells, same graphics cards, same monitors. I've checked the resolution in Windows 7 and in Matlab, and both are the same. I cannot for the life of me figure this out. The units on every item in the gui are set to "characters" as that's the default, and it is set to non-resizable. I also can't just suck it up and resize everything in the gui, because when I open it in guide, I can't access anything that is off of the screen. I feel like this greatly diminished the utility of the gui/guide system in Matlab. What a frustrating day. Any help will be greatly appreciated.
Thanks!

Answers (4)

Walid
Walid on 1 Feb 2014
I had the same issue and it was related to set(0,'ScreenPixelsPerInch',96) which seems to be 116 in some newer computers.
  1 Comment
Daniel Jiménez
Daniel Jiménez on 15 Jul 2015
This worked for me too! In the computer where my GUI was not working, this value was set 120. Changing it to 96 solved the problem of missing parts (incomplete GUI) in the interface.

Sign in to comment.


Walter Roberson
Walter Roberson on 27 Jan 2014
Characters... is it possible that the two are using different fontsize ? If you
get(0, 'DefaultFigureFontSize')
and also Axes and Text and Uicontrol instead of Figure then does anything show up?

Quentin
Quentin on 28 Jan 2014
Thanks for the reply Walter. It looks like the default was not to have the guy rescaleable in the tools menu. When I changed it, saved it, then moved it over it seemed to work. It seems odd to me that it would have to rescale anything since the monitors and graphics cards are identical. But it fixed the problem nonetheless. Thanks.
Quentin

Image Analyst
Image Analyst on 1 Feb 2014
What happens if you set all the units to Normalized? You can do control-a to select all controls except those inside panels. Then set the units. For the controls inside panels, you have to select those separately, though you can select more than 1, and set the units to normalized. I don't know why control-a does not select controls inside panels but it doesn't.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!