필터 지우기
필터 지우기

How to reorder the List box items in created dialogue window?

조회 수: 2 (최근 30일)
Lavanya
Lavanya 2022년 7월 4일
편집: Lavanya 2022년 7월 12일
I have create two apps. 1.GUI
2. Listboxedit
From GUI button click, it will open a new window with the Listbox data( it will open 2nd app ListBox edit). Till now Its working good.
For your reference I have enclosed the ListBox edit. kindly suggest a way for this?

채택된 답변

Simon Chan
Simon Chan 2022년 7월 5일
Attached code for a listbox with move up button callback.
If this is what you need, you may also implement the move down button callbcak in a similar way.
  댓글 수: 5
Simon Chan
Simon Chan 2022년 7월 6일
When you allow user to do multiple select on the Listbox, there are numerous combination and you have to decide what will be your expected outcome.
Attached are the codes for multiple selection off only.
Simon Chan
Simon Chan 2022년 7월 7일
If you would like to use the codes given to you as a reference. You need to set ItemsData as the following when you define the uilistbox.
lbox = uilistbox(uif,'Position',[125 50 150 300],...
'Items', compose('SAS Program %d',1:7),'ItemsData',1:7,'Multiselect','off');

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by