Move to corresponding item in 2nd listbox when item in 1st listbox is selected
조회 수: 2 (최근 30일)
이전 댓글 표시
I'm trying to do this in App Designer 2019b (scroll function does not exist)
I have 2 listboxes LB1 and LB2. LB1 items are 'Ex1, Ex2, Ex3....' and LB2 items are 'Example-1, Example-2, Example-3....' In short, LB1 contains words and LB2 contains descriptions of those words.
What I would like to do:
When I scroll down to Ex150 in LB1 and select it, I would like the matching item 'Example-150' to be visible/selected in LB2.
I'm using the ValueChanged function for LB1 to highlight/select the matching items in LB2 but this works only in the first set of items.
Once I scroll down LB1 and select Ex150, LB2 does not scroll to Example-150 even though it is selected.
If I manually scroll down LB2, I can verify that Example-150 is indeed selected.
Since it is 2019b, I cannot use the 'scroll' function. And since it is in App Designer, I cannot get the ListboxTop property, it seems.
TIA for any suggestion!
Joe
댓글 수: 2
Geoff Hayes
2022년 12월 22일
@Joe Rustan - could you use a table instead to manage the two columns of short and long descriptions? Or must you use list boxes?
답변 (0개)
참고 항목
카테고리
Help Center 및 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!