]> git.saurik.com Git - wxWidgets.git/blame - contrib/src/xrc/xh_stbox.cpp
don't link wxBase against GUI libraries
[wxWidgets.git] / contrib / 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/////////////////////////////////////////////////////////////////////////////
10
11#ifdef __GNUG__
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
22#include "wx/xrc/xh_stbox.h"
23#include "wx/statbox.h"
24
854e189f
VS
25IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler, wxXmlResourceHandler)
26
78d14f80
VS
27wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
28: wxXmlResourceHandler()
29{
30 AddWindowStyles();
31}
32
33wxObject *wxStaticBoxXmlHandler::DoCreateResource()
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
VS
44 SetupWindow(box);
45
46 return box;
47}
48
78d14f80
VS
49bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
50{
51 return IsOfClass(node, wxT("wxStaticBox"));
52}