]>
git.saurik.com Git - wxWidgets.git/blob - src/common/statboxcmn.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/statboxcmn.cpp
3 // Purpose: wxStaticBox common code
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
28 #include "wx/statbox.h"
30 extern WXDLLEXPORT_DATA(const char) wxStaticBoxNameStr
[] = "groupBox";
32 wxStaticBoxBase::wxStaticBoxBase()
35 m_container
.DisableSelfFocus();
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
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
)
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
)
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
)
73 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBox
, wxControl
, "wx/statbox.h")
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()
83 wxEMPTY_HANDLERS_TABLE(wxStaticBox
)
85 wxCONSTRUCTOR_6( wxStaticBox
, wxWindow
*, Parent
, wxWindowID
, Id
, \
86 wxString
, Label
, wxPoint
, Position
, wxSize
, Size
, \
89 #endif // wxUSE_STATBOX