]> git.saurik.com Git - wxWidgets.git/commitdiff
submenu preparation in two methods encapsulated
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 10 Mar 2003 11:57:27 +0000 (11:57 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 10 Mar 2003 11:57:27 +0000 (11:57 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/menu.h

index ed73c5ed3e46c190b8b793125c9a3251c4e8564b..e71cf268098e79223a47b7f2827359cb030d2190 100644 (file)
@@ -60,6 +60,12 @@ public:
       int    MacGetIndexFromId( int id ) ; 
       int    MacGetIndexFromItem( wxMenuItem *pItem ) ;
       void MacEnableMenu( bool bDoEnable ) ;
+      // MacOS needs to know about submenus somewhere within this menu
+      // before it can be displayed , also hide special menu items like preferences
+      // that are handled by the OS
+      void  MacBeforeDisplay( bool isSubMenu ) ;
+      // undo all changes from the MacBeforeDisplay call
+      void  MacAfterDisplay( bool isSubMenu ) ;
 
     // semi-private accessors
         // get the window which contains this menu