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 で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!