]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xrc/xh_stbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XRC resource for wxStaticBox
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_stbox.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xrc/xh_stbox.h"
23 #include "wx/statbox.h"
25 IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler
, wxXmlResourceHandler
)
27 wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
28 : wxXmlResourceHandler()
33 wxObject
*wxStaticBoxXmlHandler::DoCreateResource()
35 XRC_MAKE_INSTANCE(box
, wxStaticBox
)
37 box
->Create(m_parentAsWindow
,
39 GetText(wxT("label")),
40 GetPosition(), GetSize(),
49 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode
*node
)
51 return IsOfClass(node
, wxT("wxStaticBox"));