]>
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 // ----------------------------------------------------------------------------
34 // ----------------------------------------------------------------------------
36 wxDEFINE_FLAGS( wxStaticBoxStyle
)
37 wxBEGIN_FLAGS( wxStaticBoxStyle
)
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
)
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(wxBORDER
)
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(wxFULL_REPAINT_ON_RESIZE
)
61 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB
)
62 wxFLAGS_MEMBER(wxVSCROLL
)
63 wxFLAGS_MEMBER(wxHSCROLL
)
64 wxEND_FLAGS( wxStaticBoxStyle
)
66 wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBox
, wxControl
, "wx/statbox.h")
68 wxBEGIN_PROPERTIES_TABLE(wxStaticBox
)
69 wxPROPERTY( Label
, wxString
, SetLabel
, GetLabel
, wxString(), 0 /*flags*/, \
70 wxT("Helpstring"), wxT("group"))
71 wxPROPERTY_FLAGS( WindowStyle
, wxStaticBoxStyle
, long, SetWindowStyleFlag
, \
72 GetWindowStyleFlag
, wxEMPTY_PARAMETER_VALUE
, 0 /*flags*/, \
73 wxT("Helpstring"), wxT("group")) // style
74 wxEND_PROPERTIES_TABLE()
76 wxEMPTY_HANDLERS_TABLE(wxStaticBox
)
78 wxCONSTRUCTOR_6( wxStaticBox
, wxWindow
*, Parent
, wxWindowID
, Id
, \
79 wxString
, Label
, wxPoint
, Position
, wxSize
, Size
, \
82 #endif // wxUSE_STATBOX