How can uicontrol be used to make an editable dropdown (eg combobox) control?
Show older comments
I'd like to use the uicontrol of matlab and its arguments rather than the uidropdown. But I want the uidropdown functionality of having a popup menu of items that can be programmatically populated, but also the flexibility of allowing the user to define their own input value as well as the convenience of selecting from a list of values. Can this be done?
Accepted Answer
More Answers (1)
Art
on 28 Jan 2020
0 votes
Just ran across this link while searching the same thing... there appears to be an editable property. I havent tried it yet but it looks like what you want:
https://www.mathworks.com/help/matlab/ref/uidropdown.html
1 Comment
Art
on 28 Jan 2020
Sorry... skipped over the first part of your question : "...use the uicontrol of matlab and its arguments rather than the uidropdown". Nevermind!
Categories
Find more on Interactive Control and Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!