App Designer - how to vertically align butons/listboxes in panel that resizing does not move boxes to center

2 ビュー (過去 30 日間)
Good day. I have recently moved from using GUIDE to App Designer, and am struggling with resizing issues. I have a left panel where I have a handfull of buttons and listboxes that I dont want to resize when going fullscreen. The rest of the app (a UIAxis on the right) works correctly when resizing.
The problem is that I can get the buttons to stay the same size, however they move to the center vertically. I read that it might work to add.DropDown.VerticalAlignment = 'top', but the createComponents (app) function does not allow me to edit the app. I have tried to add app.DropDown.VerticalAlignment to the DropDownOpening function but that is not an available function. Any suggestions?
Attached my mlapp file
  6 件のコメント
Tania Kleynhans
Tania Kleynhans 2021 年 4 月 16 日
Thanks so much. I have never used the grid layout and it works great!
Mario Malic
Mario Malic 2021 年 4 月 16 日
Great to hear, you're welcome. I'll move my comment to the answer section so you can accept it.

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

採用された回答

Mario Malic
Mario Malic 2021 年 4 月 16 日
Grid layout retains the correct component position.

その他の回答 (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