void wxCheckListBox::GetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value )
{
if ( col == m_checkColumn )
- value.Set( IsChecked( n ) );
+ value.Check( IsChecked( n ) );
else
wxListBox::GetValueCallback( n, col, value );
}
{
if ( col == m_checkColumn )
{
- Check( n, value.GetIntValue() );
+ Check( n, value.IsChecked() );
wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, GetId() );
event.SetInt( n );
+ event.SetString( GetString( n ) );
event.SetEventObject( this );
HandleWindowEvent( event );
}
void wxCheckListBox::OnItemInserted(unsigned int pos)
{
+ wxListBox::OnItemInserted(pos);
+
m_checks.Insert(false, pos );
}
void wxCheckListBox::DoClear()
{
+ wxListBox::DoClear();
+
m_checks.Empty();
}