X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3078f075bd2ccaa86a681b2f37314fa1bb1a4c7..6cef0db28018fd2644ee4e38af715872e5242459:/src/mac/carbon/checkbox.cpp diff --git a/src/mac/carbon/checkbox.cpp b/src/mac/carbon/checkbox.cpp index c914add38b..982869b0aa 100644 --- a/src/mac/carbon/checkbox.cpp +++ b/src/mac/carbon/checkbox.cpp @@ -36,7 +36,7 @@ bool wxCheckBox::Create(wxWindow *parent, if ( !wxCheckBoxBase::Create(parent, id, pos, size, style, validator, name) ) return false; - m_label = label ; + m_labelOrig = m_label = label ; SInt32 maxValue = 1 /* kControlCheckboxCheckedValue */; if (style & wxCHK_3STATE) @@ -132,15 +132,17 @@ wxInt32 wxCheckBox::MacControlHit( WXEVENTHANDLERREF WXUNUSED(handler) , WXEVENT // Bitmap checkbox bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id, - const wxBitmap *label, - const wxPoint& pos, - const wxSize& size, + const wxBitmap *WXUNUSED(label), + const wxPoint& WXUNUSED(pos), + const wxSize& WXUNUSED(size), long style, - const wxValidator& validator, + const wxValidator& wxVALIDATOR_PARAM(validator), const wxString& name) { SetName(name); +#if wxUSE_VALIDATORS SetValidator(validator); +#endif m_windowStyle = style; if (parent) @@ -156,7 +158,7 @@ bool wxBitmapCheckBox::Create(wxWindow *parent, return false; } -void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap) +void wxBitmapCheckBox::SetLabel(const wxBitmap *WXUNUSED(bitmap)) { // TODO wxFAIL_MSG(wxT("wxBitmapCheckBox::SetLabel() not yet implemented")); @@ -167,7 +169,7 @@ void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlag wxControl::SetSize( x , y , width , height , sizeFlags ) ; } -void wxBitmapCheckBox::SetValue(bool val) +void wxBitmapCheckBox::SetValue(bool WXUNUSED(val)) { // TODO wxFAIL_MSG(wxT("wxBitmapCheckBox::SetValue() not yet implemented"));