]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/checklst.h
wxSizeEvent now carries the total size, not just the client size
[wxWidgets.git] / include / wx / motif / checklst.h
CommitLineData
9b6dbb09
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: checklst.h
3// Purpose: wxCheckListBox class - a listbox with checkable items
4// Note: this is an optional class.
5// Author: Julian Smart
6// Modified by:
7// Created: 17/09/98
8// RCS-ID: $Id$
9// Copyright: (c) Julian Smart
10// Licence: wxWindows licence
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_CHECKLST_H_
14#define _WX_CHECKLST_H_
15
16#ifdef __GNUG__
83df96d6 17#pragma interface "checklst.h"
9b6dbb09
JS
18#endif
19
20#include "wx/listbox.h"
21
9b6dbb09
JS
22class wxCheckListBox : public wxListBox
23{
83df96d6
JS
24 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
25
9b6dbb09 26public:
1bfcb0b6
VZ
27 // ctors
28 wxCheckListBox();
29 wxCheckListBox(wxWindow *parent, wxWindowID id,
83df96d6
JS
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 int nStrings = 0,
33 const wxString choices[] = NULL,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxListBoxNameStr);
37
1bfcb0b6
VZ
38 // items may be checked
39 bool IsChecked(size_t uiIndex) const;
40 void Check(size_t uiIndex, bool bCheck = TRUE);
83df96d6 41
1bfcb0b6
VZ
42private:
43 DECLARE_EVENT_TABLE()
9b6dbb09
JS
44};
45
46#endif
83df96d6 47// _WX_CHECKLST_H_