フィルターのクリア

resize in gui.m

1 回表示 (過去 30 日間)
Hossein Saberi
Hossein Saberi 2018 年 11 月 23 日
編集済み: Adam Danz 2018 年 11 月 23 日
Hi,
how i can resize a pannel with all elements in GUIs m-file ?

採用された回答

Adam Danz
Adam Danz 2018 年 11 月 23 日
編集済み: Adam Danz 2018 年 11 月 23 日
I think you're asking how to automatically resize all of the components of a UI panel when you resize the UI panel.
This can be done from the code or from the 'guide' user interface. I'll explain the simplest method.
  1. Open you GUI in guide: guide('myGui')
  2. Hold down the ctrl key and select all elements within the panel.
  3. Right click on one of the selected elements and open Property Inspector.
  4. Change 'Units' to 'normalized'.
  5. Save and exit.
  6. After you re-run your GUI you'll be able to resize the UI panel and all of its components should rescale.
You can do steps 1:5 from the code by setting each component's 'units' property from the startup section of your GUI.

その他の回答 (1 件)

Image Analyst
Image Analyst 2018 年 11 月 23 日
Try setting the Position property of the panel. Make sure the units property of the panel and all controls inside the panel are set to 'normalized'.

カテゴリ

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