- // state control
- void Check( int id, bool check );
- bool IsChecked( int id ) const;
- void Enable( int id, bool enable );
- bool IsEnabled( int id ) const;
-
- void SetLabel( int id, const wxString &label );
- wxString GetLabel( int id ) const;
- wxString GetLabel() const { return wxWindow::GetLabel(); }
-
- void EnableTop( int pos, bool flag );
- void SetLabelTop( int pos, const wxString& label );
- wxString GetLabelTop( int pos ) const;
-
- virtual void SetHelpString( int id, const wxString& helpString );
- virtual wxString GetHelpString( int id ) const;
-
- int GetMenuCount() const { return m_menus.Number(); }
- wxMenu *GetMenu( int n ) const { return (wxMenu *)m_menus.Nth(n)->Data(); }
-
-#ifdef WXWIN_COMPATIBILITY
- // compatibility: these functions are deprecated
- bool Enabled(int id) const { return IsEnabled(id); }
- bool Checked(int id) const { return IsChecked(id); }
-
- wxMenuItem* FindMenuItemById( int id ) const { return FindItem(id); }
-#endif // WXWIN_COMPATIBILITY
-
- // implementation only
- wxList& GetMenus() { return m_menus; }
+ virtual void EnableTop( size_t pos, bool flag );
+ virtual void SetLabelTop( size_t pos, const wxString& label );
+ virtual wxString GetLabelTop( size_t pos ) const;