Reorderable List Box in App Designer

7 次查看(过去 30 天)
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

回答(1 个)

Arvind Narayanan
Arvind Narayanan 2018-7-30
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

类别

Help CenterFile Exchange 中查找有关 Interactive Control and Callbacks 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by