How to select only two items from the list box?
이전 댓글 표시
I want to select only two items from a list box. The list box should not accept more than two selected items.
Please provide an example for this.
채택된 답변
추가 답변 (1개)
Walter Roberson
2011년 1월 20일
1 개 추천
There is no (documented) MATLAB mechanism for restricting the number of multi-selected items in a listbox. Your callback function will need to detect the situation and decide what to do, such as setting the Value property to only reflect the first (or last) two of the chosen values, or popping up an error dialog.
카테고리
도움말 센터 및 File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!