필터 지우기
필터 지우기

App designer Choose active and inactive variables from large list

조회 수: 4 (최근 30일)
Calvin Ebert
Calvin Ebert 2019년 8월 13일
답변: Shubham Kashyap 2020년 6월 11일
I am designing an app in app designer and I was looking to use something like the picture below to choose from a wide list of variables to activate or deactivate them in code. Is there any alternative or better/more usable way to do this? The list of variables will be up to 200 choices long. What is the best way to organize and show this for the people who will use the app? I am hoping to do something better than toggle buttons too because there may not be enough space in the app. Thanks in advance!
tableexample.PNG

답변 (1개)

Shubham Kashyap
Shubham Kashyap 2020년 6월 11일
You can use list box function that creates list box component. You can refer to the following link for more information :
You would need to just tie those commands to the value selected in the list box.
app.ListBox.Value tells you the number of the item selected in the list box.
app.ListBox.Items tells you the actual text displayed in the list box.
If you know about callbacks, you can add a callback to the list box so that anytime the selection changes, the callback function is executed.

카테고리

Help CenterFile 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!

Translated by