#define BTN_BOX_HEIGHT 12
#define BTN_BOX_WIDTH 12
-#define BTN_X_WIEGHT 2
+#define BTN_X_WEIGHT 2
class WXDLLIMPEXP_FL cbMiniButton;
// Called when a mini button is clicked.
// By default, does nothing.
- virtual void OnMiniButtonClicked( int btnIdx ) {}
+ virtual void OnMiniButtonClicked( int WXUNUSED(btnIdx) ) {}
// Handles clicking on the title. By default, does nothing.
- virtual bool HandleTitleClick( wxMouseEvent& event ) { return FALSE; }
+ virtual bool HandleTitleClick( wxMouseEvent& WXUNUSED(event) ) { return false; }
DECLARE_EVENT_TABLE()
};
// Set the position of the button.
void SetPos( const wxPoint& pos );
- // Returns TRUE if the given position was over the button.
+ // Returns true if the given position was over the button.
bool HitTest( const wxPoint& pos );
// Responds to a left down event.
// the desired appearance.
virtual void Draw( wxDC& dc );
- // Returns TRUE if the button was clicked.
+ // Returns true if the button was clicked.
bool WasClicked();
// Reset the button.
// Enable or disable the button.
void Enable( bool enable ) { mEnabled = enable; }
- // Returns TRUE if this button is pressed.
+ // Returns true if this button is pressed.
bool IsPressed() { return mPressed; }
};