GUI size change wih the screen dimension

2 ビュー (過去 30 日間)
Zunnoorain Farooqui
Zunnoorain Farooqui 2011 年 11 月 9 日
Hi, I have developed a GUI in MATLAB. I developed everything using the command, I didn't use the GUIDE GUI. Every control on my GUI has normalized units. when I resize the GUI everything resize accordingly. I developed this GUI using a 17”screen. The problem is that when I run this code to another PC who have the same resolution as mine, but have a different dimension of the screen(i.e. different size of the screen e.g. Laptop 15”) some text disappear and ‘…..’ shows after few characters some portion of the table hide behind the other tables. I have no idea how to solve this issue. Regards Zunnoorain

採用された回答

Daniel Shub
Daniel Shub 2011 年 11 月 9 日
Are you sure everything has units of normalized (including the text)?
h = text(0.5, 0.5, 'Hello world')
get(h, 'FontUnits')

その他の回答 (1 件)

Zunnoorain Farooqui
Zunnoorain Farooqui 2011 年 11 月 9 日
Thanks Daniel for your kind reply. I also set the the FontUnits property to Normalized, and FontName Property to FontWidth but the problem remained same. When I adjust the GUI lay according to my LAPTOP, it become too much sapcy(too much space among the control) on my Desktop. When I fix it on the desktop it becomes very narrow and some control text disappear. still looking for a solution

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by