]> git.saurik.com Git - wxWidgets.git/blame - src/common/checklstcmn.cpp
Fix wxImage test compilation for MSVC6.
[wxWidgets.git] / src / common / checklstcmn.cpp
CommitLineData
cc3977bf
SC
1///////////////////////////////////////////////////////////////////////////////\r
2// Name: src/common/checklstcmn.cpp\r
3// Purpose: wxCheckListBox common code\r
4// Author: Vadim Zeitlin\r
5// Modified by:\r
6// Created: 16.11.97\r
7// RCS-ID: $Id: checklst.cpp 45515 2007-04-17 01:19:43Z VZ $\r
8// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>\r
9// Licence: wxWindows licence\r
10///////////////////////////////////////////////////////////////////////////////\r
11\r
12// ============================================================================\r
13// declarations\r
14// ============================================================================\r
15\r
16// ----------------------------------------------------------------------------\r
17// headers\r
18// ----------------------------------------------------------------------------\r
19\r
20// For compilers that support precompilation, includes "wx.h".\r
21#include "wx/wxprec.h"\r
22\r
23#ifdef __BORLANDC__\r
24 #pragma hdrstop\r
25#endif\r
26\r
e7478376 27#if wxUSE_CHECKLISTBOX\r
cc3977bf
SC
28\r
29#include "wx/checklst.h"\r
30\r
31#ifndef WX_PRECOMP\r
cc3977bf
SC
32 #include "wx/object.h"\r
33 #include "wx/colour.h"\r
34 #include "wx/font.h"\r
35 #include "wx/bitmap.h"\r
36 #include "wx/window.h"\r
37 #include "wx/listbox.h"\r
38 #include "wx/dcmemory.h"\r
39 #include "wx/settings.h"\r
40 #include "wx/log.h"\r
41#endif\r
42\r
43// ----------------------------------------------------------------------------\r
44// XTI\r
45// ----------------------------------------------------------------------------\r
46\r
47wxDEFINE_FLAGS( wxCheckListBoxStyle )\r
48wxBEGIN_FLAGS( wxCheckListBoxStyle )\r
49 // new style border flags, we put them first to\r
50 // use them for streaming out\r
51 wxFLAGS_MEMBER(wxBORDER_SIMPLE)\r
52 wxFLAGS_MEMBER(wxBORDER_SUNKEN)\r
53 wxFLAGS_MEMBER(wxBORDER_DOUBLE)\r
54 wxFLAGS_MEMBER(wxBORDER_RAISED)\r
55 wxFLAGS_MEMBER(wxBORDER_STATIC)\r
56 wxFLAGS_MEMBER(wxBORDER_NONE)\r
57\r
58 // old style border flags\r
59 wxFLAGS_MEMBER(wxSIMPLE_BORDER)\r
60 wxFLAGS_MEMBER(wxSUNKEN_BORDER)\r
61 wxFLAGS_MEMBER(wxDOUBLE_BORDER)\r
62 wxFLAGS_MEMBER(wxRAISED_BORDER)\r
63 wxFLAGS_MEMBER(wxSTATIC_BORDER)\r
64 wxFLAGS_MEMBER(wxBORDER)\r
65\r
66 // standard window styles\r
67 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)\r
68 wxFLAGS_MEMBER(wxCLIP_CHILDREN)\r
69 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)\r
70 wxFLAGS_MEMBER(wxWANTS_CHARS)\r
71 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)\r
72 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )\r
73 wxFLAGS_MEMBER(wxVSCROLL)\r
74 wxFLAGS_MEMBER(wxHSCROLL)\r
75\r
76 wxFLAGS_MEMBER(wxLB_SINGLE)\r
77 wxFLAGS_MEMBER(wxLB_MULTIPLE)\r
78 wxFLAGS_MEMBER(wxLB_EXTENDED)\r
79 wxFLAGS_MEMBER(wxLB_HSCROLL)\r
80 wxFLAGS_MEMBER(wxLB_ALWAYS_SB)\r
81 wxFLAGS_MEMBER(wxLB_NEEDED_SB)\r
82 wxFLAGS_MEMBER(wxLB_SORT)\r
83 wxFLAGS_MEMBER(wxLB_OWNERDRAW)\r
84\r
85wxEND_FLAGS( wxCheckListBoxStyle )\r
86\r
87wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxCheckListBox, wxListBox, "wx/checklst.h")\r
88\r
89wxBEGIN_PROPERTIES_TABLE(wxCheckListBox)\r
90 wxEVENT_PROPERTY( Toggle, wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, wxCommandEvent )\r
91 wxPROPERTY_FLAGS( WindowStyle, wxCheckListBoxStyle, long, SetWindowStyleFlag, \\r
92 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, wxLB_OWNERDRAW /*flags*/, \\r
93 wxT("Helpstring"), wxT("group")) // style\r
94wxEND_PROPERTIES_TABLE()\r
95\r
96wxEMPTY_HANDLERS_TABLE(wxCheckListBox)\r
97\r
98wxCONSTRUCTOR_4( wxCheckListBox, wxWindow*, Parent, wxWindowID, Id, \\r
99 wxPoint, Position, wxSize, Size )\r
100\r
101\r
102#endif\r