diff options
Diffstat (limited to 'FL/Fl_Menu_Button.H')
| -rw-r--r-- | FL/Fl_Menu_Button.H | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/FL/Fl_Menu_Button.H b/FL/Fl_Menu_Button.H index 7f18eab66..b592dbb19 100644 --- a/FL/Fl_Menu_Button.H +++ b/FL/Fl_Menu_Button.H @@ -1,6 +1,4 @@ // -// "$Id$" -// // Menu button header file for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2010 by Bill Spitzak and others. @@ -9,11 +7,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // -// Please report all bugs and problems on the following page: +// Please see the following page on how to report bugs and issues: // -// http://www.fltk.org/str.php +// https://www.fltk.org/bugs.php // /* \file @@ -26,15 +24,15 @@ /** This is a button that when pushed pops up a menu (or hierarchy of - menus) defined by an array of + menus) defined by an array of Fl_Menu_Item objects. <P ALIGN=CENTER>\image html menu_button.png</P> \image latex menu_button.png " menu_button" width=5cm <P>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(). - If type() is zero a normal menu button is produced. - If it is nonzero then this is a pop-up menu. The bits in type() indicate + If type() is zero a normal menu button is produced. + If it is nonzero then this is a pop-up menu. The bits in type() indicate what mouse buttons pop up the menu (see Fl_Menu_Button::popup_buttons). </P> <P>The menu will also pop up in response to shortcuts indicated by putting a '&' character in the label(). </P> @@ -47,7 +45,7 @@ and then: - The item's callback is done if one has been set; the - Fl_Menu_Button is passed as the Fl_Widget* argument, + Fl_Menu_Button is passed as the Fl_Widget* argument, along with any userdata configured for the callback. - If the item does not have a callback, the Fl_Menu_Button's callback @@ -61,10 +59,10 @@ protected: public: /** \brief indicate what mouse buttons pop up the menu. - - Values for type() used to 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 with the mouse 1st button. */ POPUP2, /**< pops up with the mouse 2nd button. */ POPUP12, /**< pops up with the mouse 1st or 2nd buttons. */ @@ -79,7 +77,3 @@ public: }; #endif - -// -// End of "$Id$". -// |
