Reorderable List Box in App Designer

조회 수: 8 (최근 30일)
Diagonal I
Diagonal I 2018년 7월 20일
답변: Arvind Narayanan 2018년 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