X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/510b9edbb6a614d42ac7697d0819d6720b774a19..6e76b35d73fb5a043fd39af266bd452a6e20a861:/contrib/include/wx/fl/newbmpbtn.h diff --git a/contrib/include/wx/fl/newbmpbtn.h b/contrib/include/wx/fl/newbmpbtn.h index 49a0001810..5f974d0ee9 100644 --- a/contrib/include/wx/fl/newbmpbtn.h +++ b/contrib/include/wx/fl/newbmpbtn.h @@ -74,6 +74,7 @@ protected: bool mDragStarted; bool mIsPressed; bool mIsInFocus; + bool mIsToggled; bool mHasFocusedBmp; @@ -106,6 +107,10 @@ protected: // Returns TRUE if the given point is in the window. bool IsInWindow( int x, int y ); + virtual void OnIdle(wxIdleEvent& event); + // (EVT_UPDATE_UI handler) + virtual void DoButtonUpdate(); + public: // Constructor. @@ -145,6 +150,11 @@ public: // Sets the label and optionally label text. virtual void SetLabel(const wxBitmap& labelBitmap, const wxString& labelText = wxT("") ); + // Unhide method from parents. + + virtual void SetLabel(const wxString& label) + { wxPanel::SetLabel(label); }; + // Sets the text alignment and margins. virtual void SetAlignments( int alignText = NB_ALIGN_TEXT_BOTTOM, int marginX = NB_DEFAULT_MARGIN, @@ -171,6 +181,9 @@ public: // Enables/disables button virtual bool Enable(bool enable); + // Depress button + virtual bool Toggle(bool enable); + // Responds to a left mouse button down event. void OnLButtonDown( wxMouseEvent& event );