]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xh_stbox.cpp
Hopefully fixed library names generated by wx-config for OS/2's PM port.
[wxWidgets.git] / src / xrc / xh_stbox.cpp
CommitLineData
78d14f80
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xh_stbox.cpp
b5d6954b 3// Purpose: XRC resource for wxStaticBox
78d14f80
VS
4// Author: Brian Gavin
5// Created: 2000/09/09
6// RCS-ID: $Id$
7// Copyright: (c) 2000 Brian Gavin
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
f80ea77b 10
c575e45a 11#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
78d14f80
VS
12#pragma implementation "xh_stbox.h"
13#endif
14
15// For compilers that support precompilation, includes "wx.h".
16#include "wx/wxprec.h"
17
18#ifdef __BORLANDC__
19 #pragma hdrstop
20#endif
21
621be1ec 22#if wxUSE_XRC
a1e4ec87 23
78d14f80
VS
24#include "wx/xrc/xh_stbox.h"
25#include "wx/statbox.h"
26
854e189f
VS
27IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler)
28
f80ea77b
WS
29wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
30: wxXmlResourceHandler()
78d14f80
VS
31{
32 AddWindowStyles();
33}
34
35wxObject *wxStaticBoxXmlHandler::DoCreateResource()
f80ea77b 36{
544fee32 37 XRC_MAKE_INSTANCE(box, wxStaticBox)
f2588180
VS
38
39 box->Create(m_parentAsWindow,
40 GetID(),
41 GetText(wxT("label")),
42 GetPosition(), GetSize(),
43 GetStyle(),
44 GetName());
45
78d14f80 46 SetupWindow(box);
f80ea77b 47
78d14f80
VS
48 return box;
49}
50
78d14f80
VS
51bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
52{
53 return IsOfClass(node, wxT("wxStaticBox"));
54}
a1e4ec87 55
621be1ec 56#endif // wxUSE_XRC