App designer Choose active and inactive variables from large list

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Shubham Kashyap
Shubham Kashyap il 11 Giu 2020
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.

Categorie

Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by