]>
git.saurik.com Git - wxWidgets.git/blob - src/xrc/xh_stbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/xrc/xh_stbox.cpp
3 // Purpose: XRC resource for wxStaticBox
6 // Copyright: (c) 2000 Brian Gavin
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 // For compilers that support precompilation, includes "wx.h".
11 #include "wx/wxprec.h"
17 #if wxUSE_XRC && wxUSE_STATBOX
19 #include "wx/xrc/xh_stbox.h"
22 #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"));
54 #endif // wxUSE_XRC && wxUSE_STATBOX