Page 1 of 1

Wikied: Menu and Submenus

Posted: Wed May 02, 2007 16:34
by Rackle
I've Wikied code showing the usage of a menu and popup menus. In addition submenus are automatically opened when the mouse hovers over the submenu, and menus are automatically closed when the mouse leaves the menu.

Posted: Wed May 02, 2007 21:38
by Pompei2
You really did a very good job ! Thanks !

Posted: Fri Jul 20, 2007 13:23
by jtracy
Is there an easy way to get popup menus to pop in the up direction instead of the down direction. I have what is essentially a menubar on the bottom of my window, but whenever I create a popup menu and put it a down there I have to manually adjust the position of the popup so that it will show on the screen otherwise it would pop down off the bottom of the screen. I also have to adjust to position every time I want to show it because if I add or remove items from the menu it will show differently on the screen at the bottom.

Thanks

Judd

Posted: Fri Jul 20, 2007 15:07
by Rackle
Look through the code of the onPopupMenu() function; that's what it does. I'm not sure if that's only for the first menu or if it also handles submenus.