]>
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__
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
);
47 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
50 const wxArrayString
& choices
,
52 const wxValidator
& validator
= wxDefaultValidator
,
53 const wxString
& name
= wxListBoxNameStr
);
55 bool IsChecked( int index
) const;
56 void Check( int index
, bool check
= TRUE
);
58 int GetItemHeight() const;
61 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
64 #endif //__GTKCHECKLISTH__