Pop-Up Menu MultiSelect?
16 次查看(过去 30 天)
显示 更早的评论
I am writing a GUI where a pop-up menu has a string of a list of names. I want to be able to select multiple names in the drop down menu, like you do in a listbox or like in uigetfile when you set MultiSelect to 'on'. I don't want to use a listbox in the GUI because it takes up a lot more space and it isn't necessary for the user to see all the choices all the time. Is there a way to do some kind of multi select with the drop down (pop-up) menu?
1 个评论
Nabin Prajapati
2021-1-6
Hi Susan,
im having same problem right now.. did you find any solution regarding your qn??
Greets
Nabin
回答(1 个)
Maximilian Schönau
2021-1-6
There are multiple ways your problem can be solved:
- Add a menu bar to your app. This will be a menu, that can expand from the top and can have multiple submenus.
- You can use a context menu. This menu will appear, when you right klick on the desired object or on the complete app.
- You can use a drop down. This is similar to a list box but it can expand and therefor does need much less space in your app.
3 个评论
Nabin Prajapati
2021-1-8
i created it with popupmenu and edit_text.. but it is unefiicient, when you want to disselect the selected options
Maximilian Schönau
2021-1-8
编辑:Maximilian Schönau
2021-4-25
Hi, the drop down won’t be a good option for you then, since it allows only one selection. I would then use one of the other two types, and try to save and color the item, as soon as it got selected. Am not sure what you can color.
Also a table would work. Single fields in tables can be colored for sure, and since a zu table can be scrollable and can have checkboxes and more, it might be a good option for implementing many user options in a small space.
The original question was referring to a GUI, you mentioned Guide. Have in mind, that my tips referred to the Appdesigner, which is at the moment the best an nearly single choice to create GUIs.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!