]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/common/checkboxcmn.cpp
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / src / common / checkboxcmn.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/common/checkboxcmn.cpp
3// Purpose: wxCheckBox common code
4// Author: Julian Smart
5// Modified by:
6// Created: 04/01/98
7// Copyright: (c) Julian Smart
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11// ============================================================================
12// declarations
13// ============================================================================
14
15// ----------------------------------------------------------------------------
16// headers
17// ----------------------------------------------------------------------------
18
19// For compilers that support precompilation, includes "wx.h".
20#include "wx/wxprec.h"
21
22#ifdef __BORLANDC__
23 #pragma hdrstop
24#endif
25
26#if wxUSE_CHECKBOX
27
28#include "wx/checkbox.h"
29
30extern WXDLLEXPORT_DATA(const char) wxCheckBoxNameStr[] = "check";
31
32// ----------------------------------------------------------------------------
33// XTI
34// ----------------------------------------------------------------------------
35
36wxDEFINE_FLAGS( wxCheckBoxStyle )
37wxBEGIN_FLAGS( wxCheckBoxStyle )
38 // new style border flags, we put them first to
39 // use them for streaming out
40 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
41 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
42 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
43 wxFLAGS_MEMBER(wxBORDER_RAISED)
44 wxFLAGS_MEMBER(wxBORDER_STATIC)
45 wxFLAGS_MEMBER(wxBORDER_NONE)
46
47 // old style border flags
48 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
49 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
50 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
51 wxFLAGS_MEMBER(wxRAISED_BORDER)
52 wxFLAGS_MEMBER(wxSTATIC_BORDER)
53 wxFLAGS_MEMBER(wxNO_BORDER)
54
55 // standard window styles
56 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
57 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
58 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
59 wxFLAGS_MEMBER(wxWANTS_CHARS)
60 wxFLAGS_MEMBER(wxNO_FULL_REPAINT_ON_RESIZE)
61 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
62 wxFLAGS_MEMBER(wxVSCROLL)
63 wxFLAGS_MEMBER(wxHSCROLL)
64
65wxEND_FLAGS( wxCheckBoxStyle )
66
67wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxCheckBox, wxControl, "wx/checkbox.h")
68
69wxBEGIN_PROPERTIES_TABLE(wxCheckBox)
70 wxEVENT_PROPERTY( Click, wxEVT_CHECKBOX, wxCommandEvent )
71
72 wxPROPERTY( Font, wxFont, SetFont, GetFont, wxEMPTY_PARAMETER_VALUE, \
73 0 /*flags*/, wxT("Helpstring"), wxT("group"))
74 wxPROPERTY( Label,wxString, SetLabel, GetLabel, wxString(), \
75 0 /*flags*/, wxT("Helpstring"), wxT("group"))
76 wxPROPERTY( Value,bool, SetValue, GetValue, wxEMPTY_PARAMETER_VALUE, \
77 0 /*flags*/, wxT("Helpstring"), wxT("group"))
78
79 wxPROPERTY_FLAGS( WindowStyle, wxCheckBoxStyle, long, SetWindowStyleFlag, \
80 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \
81 wxT("Helpstring"), wxT("group")) // style
82wxEND_PROPERTIES_TABLE()
83
84wxEMPTY_HANDLERS_TABLE(wxCheckBox)
85
86wxCONSTRUCTOR_6( wxCheckBox, wxWindow*, Parent, wxWindowID, Id, \
87 wxString, Label, wxPoint, Position, wxSize, Size, long, WindowStyle )
88
89
90#endif // wxUSE_CHECKBOX