フィルターのクリア

uidropdown : how know indices in item?

12 ビュー (過去 30 日間)
Luca Re
Luca Re 2023 年 6 月 24 日
回答済み: dpb 2023 年 6 月 24 日
example: i select a ====> position =1
i select d=====> position =4
fig = uifigure;
%dd = uidropdown(fig,"Items",Period);
dd = uidropdown(fig,"Items",["a","b","c","d"]);

採用された回答

dpb
dpb 2023 年 6 月 24 日
The index to the selected item is in the <InteractionInformation object> of the dropdown component. The object is available to the ClickedFcn callback function; if it is present the user clicked on a selection. There's example code at the above link.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by