1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKCHECKLISTH__
12 #define __GTKCHECKLISTH__
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // there is no "right" choice of the checkbox indicators, so allow the user to
19 // define them himself if he wants
20 #ifndef wxCHECKLBOX_CHECKED
21 #define wxCHECKLBOX_CHECKED wxT('x')
22 #define wxCHECKLBOX_UNCHECKED wxT(' ')
24 #define wxCHECKLBOX_STRING wxT("[ ] ")
27 //-----------------------------------------------------------------------------
29 // ----------------------------------------------------------------------------
31 class WXDLLIMPEXP_CORE wxCheckListBox
: public wxListBox
35 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
36 const wxPoint
& pos
= wxDefaultPosition
,
37 const wxSize
& size
= wxDefaultSize
,
39 const wxString
*choices
= (const wxString
*)NULL
,
41 const wxValidator
& validator
= wxDefaultValidator
,
42 const wxString
& name
= wxListBoxNameStr
);
43 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
46 const wxArrayString
& choices
,
48 const wxValidator
& validator
= wxDefaultValidator
,
49 const wxString
& name
= wxListBoxNameStr
);
51 bool IsChecked(unsigned int index
) const;
52 void Check(unsigned int index
, bool check
= true);
54 int GetItemHeight() const;
56 void DoCreateCheckList();
59 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
62 #endif //__GTKCHECKLISTH__