diff options
| author | Manolo Gouy <Manolo> | 2014-02-10 22:24:27 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-02-10 22:24:27 +0000 |
| commit | b01cbd577b953326667e82214b93dedb87f531d2 (patch) | |
| tree | 3509b161d3d1337825351f0eb5671c1a4af5373c /FL/Fl_Sys_Menu_Bar.H | |
| parent | f35274095392e82e5d20459f100bb6ba268cc6d7 (diff) | |
Improvement of the Fl_Sys_Menu_Bar class in relation to STR #3047:
- menu shortcuts, including function keys, are correctly handled
- the mac system menus and FLTK menus share Fl_Menu_Item's, thus
many member functions of the parent Fl_Menu_ class apply equally
to an Fl_Sys_Menu_Bar.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10099 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Sys_Menu_Bar.H')
| -rw-r--r-- | FL/Fl_Sys_Menu_Bar.H | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/FL/Fl_Sys_Menu_Bar.H b/FL/Fl_Sys_Menu_Bar.H index 206137a46..14ab8d0dd 100644 --- a/FL/Fl_Sys_Menu_Bar.H +++ b/FL/Fl_Sys_Menu_Bar.H @@ -25,23 +25,24 @@ #if defined(__APPLE__) || defined(FL_DOXYGEN) /** - @brief A class to create, modify and delete menus that appear on Mac OS X in the menu bar at the top of the screen. - * - * On other than Mac OS X platforms, Fl_Sys_Menu_Bar is a synonym of class Fl_Menu_Bar. - * - * You can configure a callback for the 'About' menu item to invoke your own code with fl_mac_set_about(). + \brief A class to create, modify and delete menus that appear on Mac OS X in the menu bar at the top of the screen. + + On other than Mac OS X platforms, Fl_Sys_Menu_Bar is a synonym of class Fl_Menu_Bar. + Some FLTK features are not supported by the Mac System menu: + \li no symbolic labels + \li no embossed labels + \li no font sizes + \li some calls of the parent class don't work + + You can configure a callback for the 'About' menu item to invoke your own code with fl_mac_set_about(). * */ class FL_EXPORT Fl_Sys_Menu_Bar : public Fl_Menu_Bar { protected: void draw(); public: - /** - @brief The constructor. - * - * On Mac OS X, all arguments are unused. On other platforms they are used as by Fl_Menu_Bar::Fl_Menu_Bar(). - */ Fl_Sys_Menu_Bar(int x,int y,int w,int h,const char *l=0); + ~Fl_Sys_Menu_Bar(); const Fl_Menu_Item *menu() const {return Fl_Menu_::menu();} void menu(const Fl_Menu_Item *m); int add(const char* label, int shortcut, Fl_Callback*, void *user_data=0, int flags=0); |
