]>
Commit | Line | Data |
---|---|---|
caaa4cfd RR |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: checklst.h | |
3 | // Purpose: wxCheckListBox class | |
4 | // Author: Robert Roebling | |
ff8bfdbb | 5 | // Modified by: |
caaa4cfd RR |
6 | // RCS-ID: $Id$ |
7 | // Copyright: (c) 1998 Robert Roebling | |
8 | // Licence: wxWindows licence | |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef __GTKCHECKLISTH__ | |
12 | #define __GTKCHECKLISTH__ | |
13 | ||
14 | #ifdef __GNUG__ | |
15 | #pragma interface | |
16 | #endif | |
17 | ||
18 | #include "wx/defs.h" | |
19 | #include "wx/object.h" | |
20 | #include "wx/list.h" | |
21 | #include "wx/control.h" | |
22 | #include "wx/listbox.h" | |
23 | ||
24 | //----------------------------------------------------------------------------- | |
25 | // classes | |
26 | //----------------------------------------------------------------------------- | |
27 | ||
28 | class wxCheckListBox; | |
29 | ||
30 | //----------------------------------------------------------------------------- | |
31 | // wxCheckListBox | |
32 | //----------------------------------------------------------------------------- | |
33 | ||
34 | class wxCheckListBox : public wxListBox | |
35 | { | |
ff8bfdbb | 36 | DECLARE_DYNAMIC_CLASS(wxCheckListBox) |
caaa4cfd | 37 | |
ff8bfdbb VZ |
38 | public: |
39 | wxCheckListBox(); | |
40 | wxCheckListBox(wxWindow *parent, wxWindowID id, | |
41 | const wxPoint& pos = wxDefaultPosition, | |
42 | const wxSize& size = wxDefaultSize, | |
43 | int nStrings = 0, | |
de8113d9 RR |
44 | #if defined(__SUNCC__) |
45 | const wxString choices[] = NULL, | |
46 | #else | |
3f263f45 | 47 | const wxString choices[] = (const wxString *) NULL, |
de8113d9 | 48 | #endif |
ff8bfdbb VZ |
49 | long style = 0, |
50 | const wxValidator& validator = wxDefaultValidator, | |
51 | const wxString& name = wxListBoxNameStr); | |
52 | ||
53 | bool IsChecked( int index ) const; | |
54 | void Check( int index, bool check = TRUE ); | |
55 | ||
56 | int GetItemHeight() const; | |
caaa4cfd RR |
57 | }; |
58 | ||
ff8bfdbb | 59 | #endif |
caaa4cfd | 60 | //__GTKCHECKLISTH__ |