]>
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 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
20 #include "wx/xrc/xh_stbox.h"
21 #include "wx/statbox.h"
23 IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler
, wxXmlResourceHandler
)
25 wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
26 : wxXmlResourceHandler()
31 wxObject
*wxStaticBoxXmlHandler::DoCreateResource()
33 XRC_MAKE_INSTANCE(box
, wxStaticBox
)
35 box
->Create(m_parentAsWindow
,
37 GetText(wxT("label")),
38 GetPosition(), GetSize(),
47 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode
*node
)
49 return IsOfClass(node
, wxT("wxStaticBox"));