Azzera filtri
Azzera filtri

Move to corresponding item in 2nd listbox when item in 1st listbox is selected

1 visualizzazione (ultimi 30 giorni)
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 Commenti
Geoff Hayes
Geoff Hayes il 22 Dic 2022
@Joe Rustan - could you use a table instead to manage the two columns of short and long descriptions? Or must you use list boxes?
Joe Rustan
Joe Rustan il 27 Dic 2022
Will look into it, I'm not sure. I make quite a few calls to listboxValueChanged functions to trigger other routines, so the tables approach would have to handle these. Will keep you posted, thanks for the suggestion.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by