]>
Commit | Line | Data |
---|---|---|
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 | ||
b698c8e9 | 20 | #include "wx/defs.h" |
e9576ca5 | 21 | |
55d60746 GD |
22 | #if wxUSE_CHECKLISTBOX |
23 | ||
b698c8e9 GD |
24 | #include "wx/checklst.h" |
25 | ||
e9576ca5 SC |
26 | // ============================================================================ |
27 | // implementation | |
28 | // ============================================================================ | |
29 | ||
2f1ae414 | 30 | #if !USE_SHARED_LIBRARY |
e9576ca5 | 31 | IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) |
2f1ae414 | 32 | #endif |
e9576ca5 SC |
33 | |
34 | // ---------------------------------------------------------------------------- | |
35 | // implementation of wxCheckListBox class | |
36 | // ---------------------------------------------------------------------------- | |
37 | ||
38 | // define event table | |
39 | // ------------------ | |
40 | BEGIN_EVENT_TABLE(wxCheckListBox, wxListBox) | |
41 | END_EVENT_TABLE() | |
42 | ||
43 | // control creation | |
44 | // ---------------- | |
45 | ||
46 | // def ctor: use Create() to really create the control | |
f11bdd03 | 47 | wxCheckListBox::wxCheckListBox() : wxCheckListBoxBase() |
e9576ca5 SC |
48 | { |
49 | } | |
50 | ||
51 | // ctor which creates the associated control | |
52 | wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, | |
53 | const wxPoint& pos, const wxSize& size, | |
54 | int nStrings, const wxString choices[], | |
55 | long style, const wxValidator& val, | |
56 | const wxString& name) | |
f11bdd03 | 57 | : wxCheckListBoxBase() |
e9576ca5 SC |
58 | { |
59 | // TODO: you'll probably need a separate Create instead of using | |
60 | // the wxListBox one as here. | |
61 | Create(parent, id, pos, size, nStrings, choices, style|wxLB_OWNERDRAW, val, name); | |
62 | } | |
63 | ||
64 | // check items | |
65 | // ----------- | |
66 | ||
67 | bool wxCheckListBox::IsChecked(size_t uiIndex) const | |
68 | { | |
69 | // TODO | |
70 | return FALSE; | |
71 | } | |
72 | ||
73 | void wxCheckListBox::Check(size_t uiIndex, bool bCheck) | |
74 | { | |
75 | // TODO | |
76 | } | |
77 | ||
55d60746 | 78 | #endif // wxUSE_CHECKLISTBOX |
e9576ca5 | 79 |