How to resize panel in app Designer?

조회 수: 34 (최근 30일)
galaxy
galaxy 2022년 11월 21일
답변: Eric Delgado 2022년 11월 22일
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.
I knew that slider has only 1 pointer. So, I am wordering how to resize 3 panels as following picture ???
Do anyone have idea, please help me.
Thank you so much.

답변 (1개)

Eric Delgado
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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by