]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/checklst.cpp
2a9d09a8bf48ace5c357801b05b55b777c71c02c
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: implementation of wxCheckListBox class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
13 // headers & declarations
14 // ============================================================================
17 #pragma implementation "checklst.h"
20 #include "wx/checklst.h"
22 #if wxUSE_CHECKLISTBOX
24 // ============================================================================
26 // ============================================================================
28 #if !USE_SHARED_LIBRARY
29 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox
, wxListBox
)
32 // ----------------------------------------------------------------------------
33 // implementation of wxCheckListBox class
34 // ----------------------------------------------------------------------------
38 BEGIN_EVENT_TABLE(wxCheckListBox
, wxListBox
)
44 // def ctor: use Create() to really create the control
45 wxCheckListBox::wxCheckListBox() : wxListBox()
49 // ctor which creates the associated control
50 wxCheckListBox::wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
51 const wxPoint
& pos
, const wxSize
& size
,
52 int nStrings
, const wxString choices
[],
53 long style
, const wxValidator
& val
,
57 // TODO: you'll probably need a separate Create instead of using
58 // the wxListBox one as here.
59 Create(parent
, id
, pos
, size
, nStrings
, choices
, style
|wxLB_OWNERDRAW
, val
, name
);
65 bool wxCheckListBox::IsChecked(size_t uiIndex
) const
71 void wxCheckListBox::Check(size_t uiIndex
, bool bCheck
)
76 #endif // wxUSE_CHECKLISTBOX