wxOwnerDrawn *wxCheckListBox::CreateItem(size_t nIndex)
{
wxCheckListBoxItem *pItem = new wxCheckListBoxItem(this, nIndex);
- if ( m_windowFont.Ok() )
- pItem->SetFont(m_windowFont);
+ if ( m_font.Ok() )
+ pItem->SetFont(m_font);
return pItem;
}
if ( event.KeyCode() == WXK_SPACE )
GetItem(GetSelection())->Toggle();
else
- wxListBox::OnChar(event);
+ event.Skip();
}
void wxCheckListBox::OnLeftClick(wxMouseEvent& event)