]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/checklst.h
Native wxBitmapComboBox patch for GTK+
[wxWidgets.git] / include / wx / gtk / checklst.h
CommitLineData
caaa4cfd 1///////////////////////////////////////////////////////////////////////////////
aa61d352 2// Name: wx/gtk/checklst.h
caaa4cfd
RR
3// Purpose: wxCheckListBox class
4// Author: Robert Roebling
ff8bfdbb 5// Modified by:
caaa4cfd
RR
6// RCS-ID: $Id$
7// Copyright: (c) 1998 Robert Roebling
65571936 8// Licence: wxWindows licence
caaa4cfd
RR
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef __GTKCHECKLISTH__
12#define __GTKCHECKLISTH__
13
d752a3c3
VZ
14// ----------------------------------------------------------------------------
15// macros
16// ----------------------------------------------------------------------------
caaa4cfd 17
d752a3c3
VZ
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 _T('x')
22 #define wxCHECKLBOX_UNCHECKED _T(' ')
caaa4cfd 23
d752a3c3
VZ
24 #define wxCHECKLBOX_STRING _T("[ ] ")
25#endif
26
1e6feb95 27//-----------------------------------------------------------------------------
caaa4cfd 28// wxCheckListBox
d752a3c3 29// ----------------------------------------------------------------------------
caaa4cfd 30
20123d49 31class WXDLLIMPEXP_CORE wxCheckListBox : public wxListBox
caaa4cfd 32{
ff8bfdbb
VZ
33public:
34 wxCheckListBox();
35 wxCheckListBox(wxWindow *parent, wxWindowID id,
36 const wxPoint& pos = wxDefaultPosition,
37 const wxSize& size = wxDefaultSize,
38 int nStrings = 0,
64716cd7 39 const wxString *choices = (const wxString *)NULL,
ff8bfdbb
VZ
40 long style = 0,
41 const wxValidator& validator = wxDefaultValidator,
42 const wxString& name = wxListBoxNameStr);
584ad2a3
MB
43 wxCheckListBox(wxWindow *parent, wxWindowID id,
44 const wxPoint& pos,
45 const wxSize& size,
46 const wxArrayString& choices,
47 long style = 0,
48 const wxValidator& validator = wxDefaultValidator,
49 const wxString& name = wxListBoxNameStr);
ff8bfdbb 50
aa61d352
VZ
51 bool IsChecked(unsigned int index) const;
52 void Check(unsigned int index, bool check = true);
ff8bfdbb
VZ
53
54 int GetItemHeight() const;
aa61d352 55
4a46cbe8 56 void DoCreateCheckList();
4a46cbe8 57
738f9e5a
RR
58private:
59 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
caaa4cfd
RR
60};
61
dcf924a3 62#endif //__GTKCHECKLISTH__