]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/include/wx/fl/newbmpbtn.h
Applied patch [ 791573 ] New feature for FL toorbar buttons
[wxWidgets.git] / contrib / include / wx / fl / newbmpbtn.h
index 1421594b414a97cb9853f4977af3f4ce2989aa4c..5f974d0ee99512bc3ba78dcb486a1f7db948f2fa 100644 (file)
@@ -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.
@@ -176,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 );