]>
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
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"
18 #if wxUSE_XRC && wxUSE_STATBOX
20 #include "wx/xrc/xh_stbox.h"
23 #include "wx/statbox.h"
26 IMPLEMENT_DYNAMIC_CLASS(wxStaticBoxXmlHandler
, wxXmlResourceHandler
)
28 wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
29 :wxXmlResourceHandler()
34 wxObject
*wxStaticBoxXmlHandler::DoCreateResource()
36 XRC_MAKE_INSTANCE(box
, wxStaticBox
)
38 box
->Create(m_parentAsWindow
,
40 GetText(wxT("label")),
41 GetPosition(), GetSize(),
50 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode
*node
)
52 return IsOfClass(node
, wxT("wxStaticBox"));
55 #endif // wxUSE_XRC && wxUSE_STATBOX