X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0faf03bf97720044ae71c72beb4f995425ea174d..2debe2b120a2b376a57d3f8ec24eb418a23b2710:/src/osx/checkbox_osx.cpp diff --git a/src/osx/checkbox_osx.cpp b/src/osx/checkbox_osx.cpp index 4a0b46ecd8..93cbf2c7bb 100644 --- a/src/osx/checkbox_osx.cpp +++ b/src/osx/checkbox_osx.cpp @@ -4,7 +4,7 @@ // Author: Stefan Csomor // Modified by: // Created: 04/01/98 -// RCS-ID: $Id: checkbox.cpp 54129 2008-06-11 19:30:52Z SC $ +// RCS-ID: $Id$ // Copyright: (c) Stefan Csomor // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -36,6 +36,7 @@ bool wxCheckBox::Create(wxWindow *parent, m_labelOrig = m_label = label ; + WXValidateStyle( &style ); m_peer = wxWidgetImpl::CreateCheckBox( this, parent, id, label, pos, size, style, GetExtraStyle() ) ; MacPostControlCreate(pos, size) ; @@ -80,11 +81,11 @@ void wxCheckBox::DoSet3StateValue(wxCheckBoxState val) m_peer->SetValue( val ) ; } -bool wxCheckBox::OSXHandleClicked( double WXUNUSED(timestampsec) ) +bool wxCheckBox::OSXHandleClicked( double WXUNUSED(timestampsec) ) { bool sendEvent = true; wxCheckBoxState newState = Get3StateValue(); - + if ( !m_peer->ButtonClickDidStateChange() ) { wxCheckBoxState origState ;