From fbf1913c92a2312808c49c6a6e419f18914b5919 Mon Sep 17 00:00:00 2001
From: Manolo Gouy Normally any mouse button will pop up a menu and it is lined up
below the button as shown in the picture. However an Fl_Menu_Button
- may also control a pop-up menu. This is done by setting the type()
- , see below.
The menu will also pop up in response to shortcuts indicated by putting a '&' character in the label().
Typing the shortcut() of any of the menu items will cause @@ -58,8 +60,20 @@ class FL_EXPORT Fl_Menu_Button : public Fl_Menu_ { protected: void draw(); public: - // values for type: - enum {POPUP1 = 1, POPUP2, POPUP12, POPUP3, POPUP13, POPUP23, POPUP123}; + /** + \brief indicate what mouse buttons pop up the menu. + + Values for type() used to indicate what mouse buttons pop up the menu. + Fl_Menu_Button::POPUP3 is usually what you want. + */ + enum popup_buttons {POPUP1 = 1, /**< pops up wih the mouse 1st button. */ + POPUP2, /**< pops up wih the mouse 2nd button. */ + POPUP12, /**< pops up wih the mouse 1st or 2nd buttons. */ + POPUP3, /**< pops up wih the mouse 3rd button. */ + POPUP13, /**< pops up wih the mouse 1st or 3rd buttons. */ + POPUP23, /**< pops up wih the mouse 2nd or 3rd buttons. */ + POPUP123 /**< pops up wih any mouse button. */ + }; int handle(int); const Fl_Menu_Item* popup(); Fl_Menu_Button(int,int,int,int,const char * =0); -- cgit v1.2.3