]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/checklst.cpp
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 // ============================================================================
24 // ============================================================================
26 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox
, wxListBox
)
28 // ----------------------------------------------------------------------------
29 // implementation of wxCheckListBox class
30 // ----------------------------------------------------------------------------
34 BEGIN_EVENT_TABLE(wxCheckListBox
, wxListBox
)
40 // def ctor: use Create() to really create the control
41 wxCheckListBox::wxCheckListBox() : wxListBox()
45 // ctor which creates the associated control
46 wxCheckListBox::wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
47 const wxPoint
& pos
, const wxSize
& size
,
48 int nStrings
, const wxString choices
[],
49 long style
, const wxValidator
& val
,
53 // TODO: you'll probably need a separate Create instead of using
54 // the wxListBox one as here.
55 Create(parent
, id
, pos
, size
, nStrings
, choices
, style
|wxLB_OWNERDRAW
, val
, name
);
61 bool wxCheckListBox::IsChecked(size_t uiIndex
) const
67 void wxCheckListBox::Check(size_t uiIndex
, bool bCheck
)