Commit | Line | Data |
---|---|---|
cc3977bf SC |
1 | /////////////////////////////////////////////////////////////////////////////\r |
2 | // Name: src/common/statboxcmn.cpp\r | |
3 | // Purpose: wxStaticBox common code\r | |
4 | // Author: Julian Smart\r | |
5 | // Modified by:\r | |
6 | // Created: 04/01/98\r | |
7 | // RCS-ID: $Id: statbox.cpp 45008 2007-03-22 02:28:06Z VZ $\r | |
8 | // Copyright: (c) Julian Smart\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 | |
27 | #if wxUSE_STATBOX\r | |
28 | \r | |
29 | #include "wx/statbox.h"\r | |
30 | \r | |
31 | // ----------------------------------------------------------------------------\r | |
32 | // XTI\r | |
33 | // ----------------------------------------------------------------------------\r | |
34 | \r | |
35 | wxDEFINE_FLAGS( wxStaticBoxStyle )\r | |
36 | wxBEGIN_FLAGS( wxStaticBoxStyle )\r | |
37 | // new style border flags, we put them first to\r | |
38 | // use them for streaming out\r | |
39 | wxFLAGS_MEMBER(wxBORDER_SIMPLE)\r | |
40 | wxFLAGS_MEMBER(wxBORDER_SUNKEN)\r | |
41 | wxFLAGS_MEMBER(wxBORDER_DOUBLE)\r | |
42 | wxFLAGS_MEMBER(wxBORDER_RAISED)\r | |
43 | wxFLAGS_MEMBER(wxBORDER_STATIC)\r | |
44 | wxFLAGS_MEMBER(wxBORDER_NONE)\r | |
45 | \r | |
46 | // old style border flags\r | |
47 | wxFLAGS_MEMBER(wxSIMPLE_BORDER)\r | |
48 | wxFLAGS_MEMBER(wxSUNKEN_BORDER)\r | |
49 | wxFLAGS_MEMBER(wxDOUBLE_BORDER)\r | |
50 | wxFLAGS_MEMBER(wxRAISED_BORDER)\r | |
51 | wxFLAGS_MEMBER(wxSTATIC_BORDER)\r | |
52 | wxFLAGS_MEMBER(wxBORDER)\r | |
53 | \r | |
54 | // standard window styles\r | |
55 | wxFLAGS_MEMBER(wxTAB_TRAVERSAL)\r | |
56 | wxFLAGS_MEMBER(wxCLIP_CHILDREN)\r | |
57 | wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)\r | |
58 | wxFLAGS_MEMBER(wxWANTS_CHARS)\r | |
59 | wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)\r | |
60 | wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )\r | |
61 | wxFLAGS_MEMBER(wxVSCROLL)\r | |
62 | wxFLAGS_MEMBER(wxHSCROLL)\r | |
63 | wxEND_FLAGS( wxStaticBoxStyle )\r | |
64 | \r | |
65 | wxIMPLEMENT_DYNAMIC_CLASS_XTI(wxStaticBox, wxControl, "wx/statbox.h")\r | |
66 | \r | |
67 | wxBEGIN_PROPERTIES_TABLE(wxStaticBox)\r | |
68 | wxPROPERTY( Label, wxString, SetLabel, GetLabel, wxString(), 0 /*flags*/, \\r | |
69 | wxT("Helpstring"), wxT("group"))\r | |
70 | wxPROPERTY_FLAGS( WindowStyle, wxStaticBoxStyle, long, SetWindowStyleFlag, \\r | |
71 | GetWindowStyleFlag, wxEMPTY_PARAMETER_VALUE, 0 /*flags*/, \\r | |
72 | wxT("Helpstring"), wxT("group")) // style\r | |
73 | wxEND_PROPERTIES_TABLE()\r | |
74 | \r | |
75 | wxEMPTY_HANDLERS_TABLE(wxStaticBox)\r | |
76 | \r | |
77 | wxCONSTRUCTOR_6( wxStaticBox, wxWindow*, Parent, wxWindowID, Id, \\r | |
78 | wxString, Label, wxPoint, Position, wxSize, Size, \\r | |
79 | long, WindowStyle )\r | |
80 | \r | |
81 | #endif // wxUSE_STATBOX\r |