MenuBarModel can't have empty menus

I’m using the MenuBarModel class without problems. Creating a menu for a window like FILE PROGRAMS … but I want one of those to be an EMPTY menu that when clicked does something without opening a menu. Is this possible?

I tried just returning an empty menu, but it still opens up the menu internally and until I go to another menu and select something or hit ESC it won’t let me click on it again.

I want to do something like this:
FILE (opens a menu) PROGRAMS (opens a menu) < and > which will just go previous and next on the program’s list. :wink:

Thanks for any advice.

Cheers, WilliamK

For now I’m returning one item like this:

PopupMenu mm;
mm.addItem(0, “”);
return mm.

And then in my timerCallback I do this:

	if (closeMenus)
		closeMenus = false;

It works. But it’s a hack…

Another thing. If the menu for PROGRAMS is too big and goes under the mouse when clicking PROGRAMS it will show and close right away, unless I keep the mouse button down.