Part of deployed GUI not shown on some screen resolutions

14 views (last 30 days)
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

Accepted Answer

Jan
Jan on 20 Mar 2017
Edited: Jan on 20 Mar 2017
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 Comments
Jan
Jan on 21 Mar 2017
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
Adam on 21 Mar 2017
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.

Sign in to comment.

More Answers (0)

Categories

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

Tags

Products

Community Treasure Hunt

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

Start Hunting!