Pop-Up Menu MultiSelect?

조회 수: 16 (최근 30일)
Susan
Susan 2012년 3월 5일
편집: Maximilian Schönau 2021년 4월 25일
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
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
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
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
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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by