1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCHECKLISTH__
11 #define __GTKCHECKLISTH__
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 // there is no "right" choice of the checkbox indicators, so allow the user to
18 // define them himself if he wants
19 #ifndef wxCHECKLBOX_CHECKED
20 #define wxCHECKLBOX_CHECKED wxT('x')
21 #define wxCHECKLBOX_UNCHECKED wxT(' ')
23 #define wxCHECKLBOX_STRING wxT("[ ] ")
26 //-----------------------------------------------------------------------------
28 // ----------------------------------------------------------------------------
30 class WXDLLIMPEXP_CORE wxCheckListBox
: public wxCheckListBoxBase
34 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
35 const wxPoint
& pos
= wxDefaultPosition
,
36 const wxSize
& size
= wxDefaultSize
,
38 const wxString
*choices
= (const wxString
*)NULL
,
40 const wxValidator
& validator
= wxDefaultValidator
,
41 const wxString
& name
= wxListBoxNameStr
);
42 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
45 const wxArrayString
& choices
,
47 const wxValidator
& validator
= wxDefaultValidator
,
48 const wxString
& name
= wxListBoxNameStr
);
50 bool IsChecked(unsigned int index
) const;
51 void Check(unsigned int index
, bool check
= true);
53 int GetItemHeight() const;
55 void DoCreateCheckList();
58 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
61 #endif //__GTKCHECKLISTH__