From b01cbd577b953326667e82214b93dedb87f531d2 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 10 Feb 2014 22:24:27 +0000 Subject: 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 --- FL/Fl_Sys_Menu_Bar.H | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'FL/Fl_Sys_Menu_Bar.H') 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); -- cgit v1.2.3