1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cocoa/checklst.mm
3 // Purpose: wxCheckListBox
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
13 #include "wx/checklst.h"
16 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
17 BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
19 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
21 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
24 int n, const wxString choices[],
26 const wxValidator& validator,
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
33 m_parent->CocoaAddChild(this);
37 wxCheckListBox::~wxCheckListBox()
39 CocoaRemoveFromParent();
42 bool wxCheckListBox::IsChecked(size_t item) const
48 void wxCheckListBox::Check(size_t item, bool check)