Effacer les filtres
Effacer les filtres

uidropdown : how know indices in item?

12 vues (au cours des 30 derniers jours)
Luca Re
Luca Re le 24 Juin 2023
Réponse apportée : dpb le 24 Juin 2023
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"]);

Réponse acceptée

dpb
dpb le 24 Juin 2023
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.

Plus de réponses (0)

Catégories

En savoir plus sur Interactive Control and Callbacks dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by