X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7478376f1274fb462443ad911647e65e76f3bd8..3678169caab0f713415414dce013a638305f3cce:/src/osx/checklst_osx.cpp?ds=sidebyside diff --git a/src/osx/checklst_osx.cpp b/src/osx/checklst_osx.cpp index 16e0993bc4..c73be79821 100644 --- a/src/osx/checklst_osx.cpp +++ b/src/osx/checklst_osx.cpp @@ -56,9 +56,8 @@ bool wxCheckListBox::Create( long style, const wxValidator& validator, const wxString& name ) -{ - m_macIsUserPane = false; - +{ + wxASSERT_MSG( !(style & wxLB_MULTIPLE) || !(style & wxLB_EXTENDED), wxT("only one of listbox selection modes can be specified") ); @@ -117,7 +116,7 @@ void wxCheckListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , { Check( n, value.IsChecked() ); - wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() ); + wxCommandEvent event( wxEVT_CHECKLISTBOX, GetId() ); event.SetInt( n ); event.SetString( GetString( n ) ); event.SetEventObject( this );