Highlight a Item from a Listbox in app designer

5 ビュー (過去 30 日間)
Ethan Recalde Jaramillo
Ethan Recalde Jaramillo 2020 年 5 月 10 日
コメント済み: Geoff Hayes 2020 年 5 月 11 日
Hi, I want to select a Item from a list box and when I push a button, this Item has to highlight.
When I push the button all the list box changed the color, I dont know how can I do it for only one item.
How can I change the properties of a Item without change the rest of items of the list box?
  1 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 5 月 11 日
Ethan - please post your button callback code that shows how the list box is being updated so that we can get an idea as to why all items are being selected. Presumably all you need to do is just set the Value property to a valid item in the list. Something like
app.myListbox.Value = 'apple';
where "apple" is a valid selection in the list box set of items.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by