Part of deployed GUI not shown on some screen resolutions

8 Ansichten (letzte 30 Tage)
Vincent
Vincent am 20 Mär. 2017
Kommentiert: Adam am 21 Mär. 2017
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

Akzeptierte Antwort

Jan
Jan am 20 Mär. 2017
Bearbeitet: Jan am 20 Mär. 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 Kommentare
Jan
Jan am 21 Mär. 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 am 21 Mär. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by