Thread Subject:
uimenu with many entries...

Subject: uimenu with many entries...

From: Jens

Date: 15 Jun, 2012 17:21:07

Message: 1 of 3

Hello,

in my project i want to set to a certain main menu many menu items ( can increase > 100 Entries ). But it seems, that it is not possible to scroll throw the different items when the amount of them reaches the maximum height of the screen. Is it possible to deal with the problem?

Code-Example:
f=figure('menubar','none','toolbar','none');
file=uimenu('parent',f,'label','File');
for i=1:100, item{i}=uimenu('parent',file,'label',['Item #' num2str(i)]);end

Thanks in advance...

Subject: uimenu with many entries...

From: Steven_Lord

Date: 15 Jun, 2012 19:55:11

Message: 2 of 3



"Jens " <alpha60@freenet.de> wrote in message
news:jrfqu3$pul$1@newscl01ah.mathworks.com...
> Hello,
>
> in my project i want to set to a certain main menu many menu items ( can
> increase > 100 Entries ).

Why?

> But it seems, that it is not possible to scroll throw the different items
> when the amount of them reaches the maximum height of the screen. Is it
> possible to deal with the problem?

Yes: group your menu items into "categories" and create submenus.

menu1 = uimenu('Label', 'Main Menu');
submenu1 = uimenu('Label', 'Submenu 1', 'Parent', menu1);
subsubmenu1 = uimenu('Label', 'Subsubmenu 1', 'Parent', submenu1);
subsubmenu2 = uimenu('Label', 'Subsubmenu 2', 'Parent', submenu1);

Forcing your user to scroll through more than a hundred items to get to the
one they want seems user UNfriendly. If I were making a menu that would
allow users to select a country, for instance, I wouldn't make a list of all
130+ countries that currently exist as a flat list. I'd break it up by
continent or geographical area, then list the countries as submenus. That
way the user only needs to read through the 20 or so countries in their
desired area, which is IMO much easier than scrolling through a list of 130+
country names.


And yes, I know the drop-down menu on the Contact Us page to which I link in
my signature lists the countries as a flat list. If you click on the country
name immediately to the left of the Contact Us link on the main page, you
can see an IMO more friendly interface, that lets you click on a continent
to narrow down the list of countries from which to select.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: uimenu with many entries...

From: Jens

Date: 15 Jun, 2012 22:30:08

Message: 3 of 3

Hello Steve,

thanks for your answer.

The Project is supposed to use for technical engineering. The amount of submenu items is obtained by the user. The user should have the option to save as many submenu items he want to. It is there so set bookmarks which contains information about the current session (link to several files) an comment to the added bookmark, the date and so on. The file will be saved and added in every new session to be able to have a quick launch by clicking on the bookmark instead of loading files step by step.

But if it is not possible to be able to scroll throw that many submenu items i have to force the user to collect subitems to items if the amount of these "bookmarks" reaches a certain number, e.g. 20. That to manage dynamically is definitely a challenge...

Thanks

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
figure Jens 15 Jun, 2012 13:24:09
uimenu Jens 15 Jun, 2012 13:24:09
scroll Jens 15 Jun, 2012 13:24:09
rssFeed for this Thread

Contact us