My uimenu list (a vertical child menu list) is too long to fit on my monitor

8 visualizaciones (últimos 30 días)
Howard
Howard el 9 de Oct. de 2014
Comentada: Howard el 10 de Oct. de 2014
I create a child uimenu list that is about 200 items in length. The last 100 items (or so) on the list disappear off the bottom of my monitor, and I cannot view them nor can I click on them. What I want to happen is for the (unseen) items to "wrap back" to the top of the monitor to form a second column. But this doesn't happen. The 'position' property for uimenu is only a scalar value that controls its order in the list. It does not control a coordinate on the display. Is there a way to "wrap" long menu lists? Thanks. Howard
  2 comentarios
Geoff Hayes
Geoff Hayes el 9 de Oct. de 2014
Howard - 200 items provides the user with lots of choices! Could you not break the list down into groups of 20 or so, where the 20 are sub-menus of a parent menu selection. Like the second example of Create menus and menu items.
Howard
Howard el 10 de Oct. de 2014
This is possible, but all 200 items are created dynamically, (in other words, I read in a random list of strings from an Excel file, and each string in the list is another item in the pop-up menu), so there is no way to control how to "break apart" the list into, say, two or three separate sub-menus. Plus, the end user is expecting to see the full list of 200 items. The end user would not know which sub-menu to look under to find the item in which he/she is interested. Titus provided a possible solution below. he suggested using a list box. I can try this. Thanks. Howard

Iniciar sesión para comentar.

Respuestas (1)

Titus Edelhofer
Titus Edelhofer el 9 de Oct. de 2014
Hi,
no, you don't have this option. I would suggest to have the uimenu entry create a new dialog to select from (using e.g. listdlg).
Titus
  1 comentario
Howard
Howard el 10 de Oct. de 2014
Thanks, Titus. I will consider using a listbox and see what happens. The list box comes with a scroll bar, I believe. Thanks for the suggestion. Howard

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by