Pop-Up Menu MultiSelect?

15 visualizaciones (últimos 30 días)
Susan
Susan el 5 de Mzo. de 2012
Editada: Maximilian Schönau el 25 de Abr. de 2021
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 comentario
Nabin Prajapati
Nabin Prajapati el 6 de En. de 2021
Hi Susan,
im having same problem right now.. did you find any solution regarding your qn??
Greets
Nabin

Iniciar sesión para comentar.

Respuestas (1)

Maximilian Schönau
Maximilian Schönau el 6 de En. de 2021
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 comentarios
Nabin Prajapati
Nabin Prajapati el 8 de En. de 2021
i created it with popupmenu and edit_text.. but it is unefiicient, when you want to disselect the selected options
Maximilian Schönau
Maximilian Schönau el 8 de En. de 2021
Editada: Maximilian Schönau el 25 de Abr. de 2021
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by