I haven't given up on them, I just haven't been able to fix them all the way
yet. One of my Monday changes was to adjust the vertical position of a
submenu near the bottom of the screen so that its bottom entry was at the
bottom of the activating parent menu entry rather than at the top. As for
the other menu bugs, it is simply that I haven't been able to fix them yet.
Incidentally, GLUT's menus are not perfect. At least in the Windows
version, you can run the "glutmech" demo (which has four levels of menu) and
get some interesting behavior:
(1) Activate four levels of menu by clicking and dragging the mouse.
(2) Drag the mouse out of the bottom level submenu.
(3) Release the mouse button. The menus stay put.
(4) To make the top-level menu disappear, you have to click a mouse
button again. You can make the submenus disappear by moving the mouse into
a higher-level menu.
(5) If you have clicked the mouse outside the "glutmech" window, and
you alt-tab to give the "glutmech" window focus again, the next mouse click
will not activate the menu.
I'm not sure whether GLUT Linux does this, but this is some of the behavior
that Richard was criticizing in "freeglut"--specifically, his second bullet
John F. Fay
From: Richard Rauch [mailto:sforge@...]
Sent: Wednesday, October 22, 2003 8:42 AM
Subject: Re: [Freeglut-developer] What are we doing?
Speaking of menus: John, are you giving up on fixing the menus? Your last
suggested changes (Monday?) seemed to be non-menu related.
Or are you just holding off on them?
The menus still have a few issues:
* Sub-menus don't, if I recall correctly, highlight properly if you
hold the menu-button down and drag, rather than bringing up the
menu and releasing.
* There is still no way in freeglut's menus to get rid of the menu
once it comes up without clicking on the interior of one of the
windows managed by freeglut.