]>
Commit | Line | Data |
---|---|---|
78d14f80 | 1 | ///////////////////////////////////////////////////////////////////////////// |
876cd6f7 | 2 | // Name: src/xrc/xh_stbox.cpp |
b5d6954b | 3 | // Purpose: XRC resource for wxStaticBox |
78d14f80 VS |
4 | // Author: Brian Gavin |
5 | // Created: 2000/09/09 | |
78d14f80 VS |
6 | // Copyright: (c) 2000 Brian Gavin |
7 | // Licence: wxWindows licence | |
8 | ///////////////////////////////////////////////////////////////////////////// | |
f80ea77b | 9 | |
78d14f80 VS |
10 | // For compilers that support precompilation, includes "wx.h". |
11 | #include "wx/wxprec.h" | |
12 | ||
13 | #ifdef __BORLANDC__ | |
14 | #pragma hdrstop | |
15 | #endif | |
16 | ||
876cd6f7 | 17 | #if wxUSE_XRC && wxUSE_STATBOX |
a1e4ec87 | 18 | |
78d14f80 | 19 | #include "wx/xrc/xh_stbox.h" |
876cd6f7 WS |
20 | |
21 | #ifndef WX_PRECOMP | |
22 | #include "wx/statbox.h" | |
23 | #endif | |
78d14f80 | 24 | |
854e189f VS |
25 | IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler) |
26 | ||
f80ea77b | 27 | wxStaticBoxXmlHandler::wxStaticBoxXmlHandler() |
876cd6f7 | 28 | :wxXmlResourceHandler() |
78d14f80 VS |
29 | { |
30 | AddWindowStyles(); | |
31 | } | |
32 | ||
33 | wxObject *wxStaticBoxXmlHandler::DoCreateResource() | |
f80ea77b | 34 | { |
544fee32 | 35 | XRC_MAKE_INSTANCE(box, wxStaticBox) |
f2588180 VS |
36 | |
37 | box->Create(m_parentAsWindow, | |
38 | GetID(), | |
39 | GetText(wxT("label")), | |
40 | GetPosition(), GetSize(), | |
41 | GetStyle(), | |
42 | GetName()); | |
43 | ||
78d14f80 | 44 | SetupWindow(box); |
f80ea77b | 45 | |
78d14f80 VS |
46 | return box; |
47 | } | |
48 | ||
78d14f80 VS |
49 | bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node) |
50 | { | |
51 | return IsOfClass(node, wxT("wxStaticBox")); | |
52 | } | |
a1e4ec87 | 53 | |
876cd6f7 | 54 | #endif // wxUSE_XRC && wxUSE_STATBOX |