]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/checklst.cpp
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: implementation of wxCheckListBox class
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
13 // headers & declarations
14 // ============================================================================
17 #pragma implementation "checklst.h"
20 #include "wx/checklst.h"
22 // ============================================================================
24 // ============================================================================
26 #if !USE_SHARED_LIBRARY
27 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox
, wxListBox
)
30 // ----------------------------------------------------------------------------
31 // implementation of wxCheckListBox class
32 // ----------------------------------------------------------------------------
36 BEGIN_EVENT_TABLE(wxCheckListBox
, wxListBox
)
42 // def ctor: use Create() to really create the control
43 wxCheckListBox::wxCheckListBox() : wxListBox()
47 // ctor which creates the associated control
48 wxCheckListBox::wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
49 const wxPoint
& pos
, const wxSize
& size
,
50 int nStrings
, const wxString choices
[],
51 long style
, const wxValidator
& val
,
55 // TODO: you'll probably need a separate Create instead of using
56 // the wxListBox one as here.
57 Create(parent
, id
, pos
, size
, nStrings
, choices
, style
|wxLB_OWNERDRAW
, val
, name
);
63 bool wxCheckListBox::IsChecked(size_t uiIndex
) const
69 void wxCheckListBox::Check(size_t uiIndex
, bool bCheck
)