]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/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__
20 #if wxUSE_CHECKLISTBOX
22 #include "wx/object.h"
24 #include "wx/control.h"
25 #include "wx/listbox.h"
27 // ----------------------------------------------------------------------------
29 // ----------------------------------------------------------------------------
31 // there is no "right" choice of the checkbox indicators, so allow the user to
32 // define them himself if he wants
33 #ifndef wxCHECKLBOX_CHECKED
34 #define wxCHECKLBOX_CHECKED _T('x')
35 #define wxCHECKLBOX_UNCHECKED _T(' ')
37 #define wxCHECKLBOX_STRING _T("[ ] ")
40 // ----------------------------------------------------------------------------
42 // ----------------------------------------------------------------------------
44 class wxCheckListBox
: public wxListBox
48 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
49 const wxPoint
& pos
= wxDefaultPosition
,
50 const wxSize
& size
= wxDefaultSize
,
52 const wxString
*choices
= (const wxString
*)NULL
,
54 const wxValidator
& validator
= wxDefaultValidator
,
55 const wxString
& name
= wxListBoxNameStr
);
57 bool IsChecked( int index
) const;
58 void Check( int index
, bool check
= TRUE
);
60 int GetItemHeight() const;
63 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
68 #endif //__GTKCHECKLISTH__