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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
12 #pragma implementation "xh_statpict.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
24 #include "wx/gizmos/statpict.h"
25 #include "wx/gizmos/xh_statpict.h"
27 // Register with wxWindows' dynamic class subsystem.
28 IMPLEMENT_DYNAMIC_CLASS(wxStaticPictureXmlHandler
, wxXmlResourceHandler
)
31 wxStaticPictureXmlHandler::wxStaticPictureXmlHandler()
36 // Creates the control and returns a pointer to it.
37 wxObject
*wxStaticPictureXmlHandler::DoCreateResource()
39 XRC_MAKE_INSTANCE(control
, wxStaticPicture
)
41 control
->Create(m_parentAsWindow
, GetID(),
42 GetBitmap(wxT("bitmap"), wxART_OTHER
, GetSize()),
43 GetPosition(), GetSize(), GetStyle(), GetName());
50 // Returns true if we know how to create a control for the given node.
51 bool wxStaticPictureXmlHandler::CanHandle(wxXmlNode
*node
)
53 return IsOfClass(node
, wxT("wxStaticPicture"));