Is there a way to auto resize a GUI window according to PC's screen size?

11 ビュー (過去 30 日間)
Flávio
Flávio 2013 年 3 月 18 日
コメント済み: Walter Roberson 2016 年 5 月 24 日
I have created a GUI on my pc, but then I tried to use it on another pc with an older screen and the windows got off screen. So I'm wondering if there's a way to fit the GUI windows automatically according to screen's size.
Thanks!

採用された回答

Titus Edelhofer
Titus Edelhofer 2013 年 3 月 18 日
Hi,
yes, you can resize it in the opening function. E.g. add
set(handles.figure1, 'units', 'normalized', 'position', [0.05 0.15 0.9 0.8])
Titus
  5 件のコメント
Walter Roberson
Walter Roberson 2016 年 5 月 24 日
Leonardo Sanchez comments,
Hi titus, I just try your solutions, but I have a problem. When I Run the scripts, it doesn´t work correctly. Could you help Me? Leonardo.
Walter Roberson
Walter Roberson 2016 年 5 月 24 日
Where Titus used handles.figure1 instead code gcf such as
set(gcf, 'units', 'normalized', 'position', [0.05 0.15 0.9 0.8])

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by