Borrar filtros
Borrar filtros

App designer Choose active and inactive variables from large list

4 visualizaciones (últimos 30 días)
Calvin Ebert
Calvin Ebert el 13 de Ag. de 2019
Respondida: Shubham Kashyap el 11 de Jun. de 2020
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

Respuestas (1)

Shubham Kashyap
Shubham Kashyap el 11 de Jun. de 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.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by