bool mDragStarted;
bool mIsPressed;
bool mIsInFocus;
+ bool mIsToggled;
bool mHasFocusedBmp;
// 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.
// 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,
// 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 );