X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6f93922574f0733fde4817445c3575398e2bf7a..55410bb4f67febe1ca20654f078ea4fb9a6223ae:/src/osx/checklst_osx.cpp?ds=sidebyside diff --git a/src/osx/checklst_osx.cpp b/src/osx/checklst_osx.cpp index 574d9ecf83..1c3a1d5815 100644 --- a/src/osx/checklst_osx.cpp +++ b/src/osx/checklst_osx.cpp @@ -117,10 +117,11 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , { if ( col == m_checkColumn ) { - Check( n, value.GetIntValue() ); + Check( n, value.GetIntValue() != 0 ); wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() ); event.SetInt( n ); + event.SetString( GetString( n ) ); event.SetEventObject( this ); HandleWindowEvent( event ); } @@ -134,6 +135,8 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , void wxCheckListBox::OnItemInserted(unsigned int pos) { + wxListBox::OnItemInserted(pos); + m_checks.Insert(false, pos ); } @@ -146,6 +149,8 @@ void wxCheckListBox::DoDeleteOneItem(unsigned int n) void wxCheckListBox::DoClear() { + wxListBox::DoClear(); + m_checks.Empty(); }