]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
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__
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 // there is no "right" choice of the checkbox indicators, so allow the user to
23 // define them himself if he wants
24 #ifndef wxCHECKLBOX_CHECKED
25 #define wxCHECKLBOX_CHECKED _T('x')
26 #define wxCHECKLBOX_UNCHECKED _T(' ')
28 #define wxCHECKLBOX_STRING _T("[ ] ")
31 //-----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 class wxCheckListBox
: public wxListBox
39 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
40 const wxPoint
& pos
= wxDefaultPosition
,
41 const wxSize
& size
= wxDefaultSize
,
43 const wxString
*choices
= (const wxString
*)NULL
,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxListBoxNameStr
);
48 bool IsChecked( int index
) const;
49 void Check( int index
, bool check
= TRUE
);
51 int GetItemHeight() const;
54 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
57 #endif //__GTKCHECKLISTH__