Appdesigner drop down (popupmenu) keyboard navigation
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello,
I just migrated my GUIDE app to AppDesigner and one of the features that I really liked in GUIDE is the ability to navigate through drop down menus (popupmenu) using the keyboard. Meaning, I can push a letter on the keyboard to select the option where the first character matches that letter.
Is this possible on the drop down menus in AppDesigner?
In principle I don't need the UI element to be a drop down menu, I just need something that accepts keyboard input but not a "free form" answer. So the keyboard can be used to narrow down a set of predetermined options.
Much appreciated,
0 Commenti
Risposte (1)
Monika Phadnis
il 9 Ott 2020
'uidropdown' component supports this workflow as well.
If you set the 'Editable' property to 'on', users can enter text in dropdown to narrow down available values.
Refer the documentation for this property: https://www.mathworks.com/help/matlab/ref/uidropdown.html#buict8f-1_sep_shared-Editable
In case you want to add further restrictions or define behaviors when dropdown value is changed, you can do so in the 'ValueChangedFcn' callback function.
Refer the documentation for this property: https://www.mathworks.com/help/matlab/ref/uidropdown.html#buict8f-1_sep_shared-ValueChangedFcn
Hope this helps!
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!