Part of deployed GUI not shown on some screen resolutions
11 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a problem with a deployed GUI created through guide.
When deployed to a system with the same screen resolution as the one it was created on, everything works fine. But if I run the deployed application on another resolution (fewer pixels, e.g. 1366x768 instead of HD), part of the GUI is not shown. All elements are more or less equally large on both systems, but part of the GUI seems to have been clipped. The top 10% of the GUI is cut off.
All UI elements have units "characters". I'm using MATLAB r2014a. Resizing is not configured. The GUI has 3 tabs and >200 UI elements (thus very large, and I prefer not to reconfigure everything...).
What is the easiest workaround? I don't particularly care for dynamic resizing by the user, but the GUI should show properly on all screen resolutions...
Thanks in advance!
Vincent
0 个评论
采纳的回答
Jan
2017-3-20
编辑:Jan
2017-3-20
Then most likely the elements of the GUI have a fixed size in 'character' units, but the figure has not, but the size is defined relative to the screen size in 'normalized' units. To solve tis, define the figure with a fixed size also.
3 个评论
Jan
2017-3-21
The figure is only reduced in the size automatically, if it's pixel size is larger than the monitor size. Is this the case? Then there is no way to avoid either a resizable GUI or to program some scrollbars.
Adam
2017-3-21
If you use normalised units your GUI should always fit on screen, whatever the resolution. Components will look unpleasant if they are squashed or stretched excessively, but this is a problem I have always had with building GUIs. Anything other than normalised units tends to cause problems for different resolutions or, more so in my case, people using laptops with the 125% text and objects size setting.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!