]>
Commit | Line | Data |
---|---|---|
56d2f750 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: xh_stbmp.cpp | |
3 | // Purpose: XML resource for wxStaticBitmap | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2000/04/22 | |
6 | // RCS-ID: $Id$ | |
7 | // Copyright: (c) 2000 Vaclav Slavik | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifdef __GNUG__ | |
12 | #pragma implementation "xh_stbmp.h" | |
13 | #endif | |
14 | ||
15 | // For compilers that support precompilation, includes "wx.h". | |
16 | #include "wx/wxprec.h" | |
17 | ||
18 | #ifdef __BORLANDC__ | |
19 | #pragma hdrstop | |
20 | #endif | |
21 | ||
22 | #include "wx/xml/xh_stbmp.h" | |
23 | #include "wx/statbmp.h" | |
56d2f750 VS |
24 | |
25 | wxStaticBitmapXmlHandler::wxStaticBitmapXmlHandler() | |
26 | : wxXmlResourceHandler() | |
27 | { | |
09dc1241 | 28 | AddWindowStyles(); |
56d2f750 VS |
29 | } |
30 | ||
31 | wxObject *wxStaticBitmapXmlHandler::DoCreateResource() | |
32 | { | |
56d2f750 VS |
33 | wxStaticBitmap *bmp = new wxStaticBitmap(m_ParentAsWindow, |
34 | GetID(), | |
a559d708 | 35 | GetBitmap(wxT("bitmap"), GetSize()), |
56d2f750 VS |
36 | GetPosition(), GetSize(), |
37 | GetStyle(), | |
38 | GetName() | |
39 | ); | |
40 | SetupWindow(bmp); | |
41 | ||
42 | return bmp; | |
43 | } | |
44 | ||
45 | ||
46 | ||
47 | bool wxStaticBitmapXmlHandler::CanHandle(wxXmlNode *node) | |
48 | { | |
a559d708 | 49 | return IsOfClass(node, wxT("wxStaticBitmap")); |
56d2f750 VS |
50 | } |
51 | ||
52 |