1 /////////////////////////////////////////////////////////////////////////////
2 // Name: xh_statpict.cpp
3 // Purpose: XRC resource handler for wxStaticPicture
4 // Author: David A. Norris
7 // Copyright: David A. Norris
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
11 // For compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
20 #include "wx/gizmos/statpict.h"
21 #include "wx/gizmos/xh_statpict.h"
23 // Register with wxWindows' dynamic class subsystem.
24 IMPLEMENT_DYNAMIC_CLASS(wxStaticPictureXmlHandler
, wxXmlResourceHandler
)
27 wxStaticPictureXmlHandler::wxStaticPictureXmlHandler()
32 // Creates the control and returns a pointer to it.
33 wxObject
*wxStaticPictureXmlHandler::DoCreateResource()
35 XRC_MAKE_INSTANCE(control
, wxStaticPicture
)
37 control
->Create(m_parentAsWindow
, GetID(),
38 GetBitmap(wxT("bitmap"), wxART_OTHER
, GetSize()),
39 GetPosition(), GetSize(), GetStyle(), GetName());
46 // Returns true if we know how to create a control for the given node.
47 bool wxStaticPictureXmlHandler::CanHandle(wxXmlNode
*node
)
49 return IsOfClass(node
, wxT("wxStaticPicture"));