![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1203503/image.png)
How to resize panel in app Designer?
16 ビュー (過去 30 日間)
古いコメントを表示
Hi all
In 2019b, I could resize 2 panels by using slider and Gridlayout. Of course, I didn't use auto-reflow because there are many other elements which were arranged in app. You can see in attachment file.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1201203/image.png)
I knew that slider has only 1 pointer. So, I am wordering how to resize 3 panels as following picture ???
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1201208/image.png)
Do anyone have idea, please help me.
Thank you so much.
0 件のコメント
回答 (1 件)
Eric Delgado
2022 年 11 月 22 日
Unfortunately, Matlab still doesn't have a good approach to dealing with this issue. Maybe you can use a toolbar with predefined options. See app attached.
function ImageClicked(app, event)
switch event.Source
case app.Image0; app.GridLayout.ColumnWidth(1:2) = {'1x','1x'};
case app.Image1; app.GridLayout.ColumnWidth(1:2) = {'1x',0};
case app.Image2; app.GridLayout.ColumnWidth(1:2) = {0,'1x'};
end
end
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1203503/image.png)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Develop Apps Using App Designer についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!