Issues with Guide gui figure transfer

2 次查看(过去 30 天)
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!

回答(4 个)

Walid
Walid 2014-2-1
I had the same issue and it was related to set(0,'ScreenPixelsPerInch',96) which seems to be 116 in some newer computers.
  1 个评论
Daniel Jiménez
Daniel Jiménez 2015-7-15
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.

请先登录,再进行评论。


Walter Roberson
Walter Roberson 2014-1-27
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 2014-1-28
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 2014-2-1
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by