From 09daf20b81cdae78772f07c0af22a571d7cc73eb Mon Sep 17 00:00:00 2001
From: Michael R Sweet You should use the method functions to access structure members and
-not access them directly to avoid compatibility problems with future
+flags.
+ You should use the method functions to access structure members and
+not access them directly to avoid compatibility problems with future
releases of FLTK.
Fl_Menu_Item popup[] = {
{"&alpha", FL_ALT+'a', the_cb, (void*)1},
@@ -73,12 +73,12 @@ produces:
A submenu title is identified by the bit FL_SUBMENU in the
flags field, and ends with a label() that is NULL.
-You can nest menus to any depth. A pointer to the first item in the
-submenu can be treated as an Fl_Menu array itself. It is also
+You can nest menus to any depth. A pointer to the first item in the
+submenu can be treated as an Fl_Menu array itself. It is also
possible to make seperate submenu arrays with FL_SUBMENU_POINTER
-flags.
-Methods
The key can be any value returned by -Fl::event_key(), but will usually be an ASCII letter. Use +Fl::event_key()
, but will usually be an ASCII letter. Use a lower-case letter unless you require the shift key to be held down.The shift flags can be any set of values accepted by -Fl::event_state(). If the bit is on that shift key must -be pushed. Meta, Alt, Ctrl, and Shift must be off if they are not in -the shift flags (zero for the other bits indicates a "don't care" +Fl::event_state()
. If the bit is on that shift key must +be pushed. Meta, Alt, Ctrl, and Shift must be off if they are not in +the shift flags (zero for the other bits indicates a "don't care" setting).X,Y is the position of the mouse cursor, relative to the +
X,Y is the position of the mouse cursor, relative to the window that got the most recent event (usually you can pass Fl::event_x() and Fl::event_y() unchanged here).
-title is a character string title for the menu. If +
title is a character string title for the menu. If non-zero a small box appears above the menu with the title in it.
The menu is positioned so the cursor is centered over the item -picked. This will work even if picked is in a submenu. -If picked is zero or not in the menu item table the menu is +picked. This will work even if picked is in a submenu. +If picked is zero or not in the menu item table the menu is positioned with the cursor in the top-left corner.
button is a pointer to an -Fl_Menu_ from which the color and boxtypes for the menu are +Fl_Menu_
from which the color and boxtypes for the menu are pulled. If NULL then defaults are used. -The title and menubar arguments are used + wide, and the picked item is centered over the rectangle +(like Fl_Choice uses). If picked is zero or not +found, the menu is aligned just below the rectangle (like a pulldown +menu). +
The title and menubar arguments are used internally by the Fl_Menu_Bar widget.
-