Part of deployed GUI not shown on some screen resolutions

8 ビュー (過去 30 日間)
Vincent
Vincent 2017 年 3 月 20 日
コメント済み: Adam 2017 年 3 月 21 日
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

採用された回答

Jan
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
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
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 ExchangeMigrate GUIDE Apps についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by