]>
git.saurik.com Git - wxWidgets.git/blob - 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"
24 #include "wx/xrc/xh_stbox.h"
25 #include "wx/statbox.h"
27 IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler
, wxXmlResourceHandler
)
29 wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
30 : wxXmlResourceHandler()
35 wxObject
*wxStaticBoxXmlHandler::DoCreateResource()
37 XRC_MAKE_INSTANCE(box
, wxStaticBox
)
39 box
->Create(m_parentAsWindow
,
41 GetText(wxT("label")),
42 GetPosition(), GetSize(),
51 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode
*node
)
53 return IsOfClass(node
, wxT("wxStaticBox"));