Reorderable List Box in App Designer

6 visualizaciones (últimos 30 días)
Diagonal I
Diagonal I el 20 de Jul. de 2018
Respondida: Arvind Narayanan el 30 de Jul. de 2018
Hi,
I'm building an app where I have a variable number of items based on loaded data. I would like to populate a listbox but allow the user to re-order the items. I found this file exchange code to do this but it seems to be broken in never version of Matlab. Does anyone have any idea how to implement this in R2018a using App Designer?
Thanks

Respuestas (1)

Arvind Narayanan
Arvind Narayanan el 30 de Jul. de 2018
Hi,
Reordering the content within a listbox can be simplified to basically reordering the contents of the cell array 'app.ListBox.Items'. This contains the options within the listbox and any operation done to this array will result in reordering of the content within the listbox.
Some of the functions you can consider for reordering the array are:
Hope this helps!
Thanks,
Arvind

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by