]> git.saurik.com Git - wxWidgets.git/blob - src/common/statboxcmn.cpp
No changes, just fix a typo in a comment in docview event handling code.
[wxWidgets.git] / src / common / statboxcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/statboxcmn.cpp
3 // Purpose: wxStaticBox 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_STATBOX
27
28 #include "wx/statbox.h"
29
30 extern WXDLLEXPORT_DATA(const char) wxStaticBoxNameStr[] = "groupBox";
31
32 wxStaticBoxBase::wxStaticBoxBase()
33 {
34 #ifndef __WXGTK__
35 m_container.DisableSelfFocus();
36 #endif
37 }
38
39 // ----------------------------------------------------------------------------
40 // XTI
41 // ----------------------------------------------------------------------------
42
43 wxDEFINE_FLAGS( wxStaticBoxStyle )
44 wxBEGIN_FLAGS( wxStaticBoxStyle )
45 // new style border flags, we put them first to
46 // use them for streaming out
47 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
48 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
49 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
50 wxFLAGS_MEMBER(wxBORDER_RAISED)
51 wxFLAGS_MEMBER(wxBORDER_STATIC)
52 wxFLAGS_MEMBER(wxBORDER_NONE)
53
54 // old style border flags
55 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
56 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
57 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
58 wxFLAGS_MEMBER(wxRAISED_BORDER)
59 wxFLAGS_MEMBER(wxSTATIC_BORDER)
60 wxFLAGS_MEMBER(wxBORDER)
61
62 // standard window styles
63 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
64 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
65 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
66 wxFLAGS_MEMBER(wxWANTS_CHARS)
67 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
68 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
69 wxFLAGS_MEMBER(wxVSCROLL)
70 wxFLAGS_MEMBER(wxHSCROLL)
71 wxEND_FLAGS( wxStaticBoxStyle )
72
73 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBox, wxControl, "wx/statbox.h")
74
75 wxBEGIN_PROPERTIES_TABLE(wxStaticBox)
76 wxPROPERTY( Label, wxString, SetLabel, GetLabel, wxString(), 0 /*flags*/, \
77 wxT("Helpstring"), wxT("group"))
78 wxPROPERTY_FLAGS( WindowStyle, wxStaticBoxStyle, long, SetWindowStyleFlag, \
79 GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \
80 wxT("Helpstring"), wxT("group")) // style
81 wxEND_PROPERTIES_TABLE()
82
83 wxEMPTY_HANDLERS_TABLE(wxStaticBox)
84
85 wxCONSTRUCTOR_6( wxStaticBox, wxWindow*, Parent, wxWindowID, Id, \
86 wxString, Label, wxPoint, Position, wxSize, Size, \
87 long, WindowStyle )
88
89 #endif // wxUSE_STATBOX