]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/checklst.cpp
added missing common cmdproc files
[wxWidgets.git] / src / mac / carbon / checklst.cpp
CommitLineData
e9576ca5
SC
1///////////////////////////////////////////////////////////////////////////////
2// Name: checklst.cpp
3// Purpose: implementation of wxCheckListBox class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
12// ============================================================================
13// headers & declarations
14// ============================================================================
15
16#ifdef __GNUG__
17#pragma implementation "checklst.h"
18#endif
19
20#include "wx/checklst.h"
21
55d60746
GD
22#if wxUSE_CHECKLISTBOX
23
e9576ca5
SC
24// ============================================================================
25// implementation
26// ============================================================================
27
2f1ae414 28#if !USE_SHARED_LIBRARY
e9576ca5 29 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
2f1ae414 30#endif
e9576ca5
SC
31
32// ----------------------------------------------------------------------------
33// implementation of wxCheckListBox class
34// ----------------------------------------------------------------------------
35
36// define event table
37// ------------------
38BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox)
39END_EVENT_TABLE()
40
41// control creation
42// ----------------
43
44// def ctor: use Create() to really create the control
45wxCheckListBox::wxCheckListBox() : wxListBox()
46{
47}
48
49// ctor which creates the associated control
50wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
51 const wxPoint& pos, const wxSize& size,
52 int nStrings, const wxString choices[],
53 long style, const wxValidator& val,
54 const wxString& name)
55 : wxListBox()
56{
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);
60}
61
62// check items
63// -----------
64
65bool wxCheckListBox::IsChecked(size_t uiIndex) const
66{
67 // TODO
68 return FALSE;
69}
70
71void wxCheckListBox::Check(size_t uiIndex, bool bCheck)
72{
73 // TODO
74}
75
55d60746 76#endif // wxUSE_CHECKLISTBOX
e9576ca5 77