]> git.saurik.com Git - wxWidgets.git/blame - src/xrc/xh_stlin.cpp
Make the wxComboCtrl's wxTextEntry interface more complete and consistent. All text...
[wxWidgets.git] / src / xrc / xh_stlin.cpp
CommitLineData
78d14f80
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xh_stbox.cpp
b5d6954b 3// Purpose: XRC resource for wxStaticLine
78d14f80
VS
4// Author: Brian Gavin
5// Created: 2000/09/09
6// RCS-ID: $Id$
7// Copyright: (c) 2000 Brian Gavin
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
f80ea77b 10
78d14f80
VS
11// For compilers that support precompilation, includes "wx.h".
12#include "wx/wxprec.h"
13
14#ifdef __BORLANDC__
15 #pragma hdrstop
16#endif
17
621be1ec 18#if wxUSE_XRC && wxUSE_STATLINE
a1e4ec87 19
78d14f80
VS
20#include "wx/xrc/xh_stlin.h"
21#include "wx/statline.h"
22
854e189f
VS
23IMPLEMENT_DYNAMIC_CLASS(wxStaticLineXmlHandler, wxXmlResourceHandler)
24
f80ea77b
WS
25wxStaticLineXmlHandler::wxStaticLineXmlHandler()
26: wxXmlResourceHandler()
78d14f80 27{
544fee32
VS
28 XRC_ADD_STYLE(wxLI_HORIZONTAL);
29 XRC_ADD_STYLE(wxLI_VERTICAL);
78d14f80
VS
30 AddWindowStyles();
31}
32
33wxObject *wxStaticLineXmlHandler::DoCreateResource()
f80ea77b 34{
544fee32 35 XRC_MAKE_INSTANCE(line, wxStaticLine)
f2588180
VS
36
37 line->Create(m_parentAsWindow,
38 GetID(),
39 GetPosition(), GetSize(),
40 GetStyle(wxT("style"), wxLI_HORIZONTAL),
41 GetName());
42
78d14f80 43 SetupWindow(line);
f80ea77b 44
78d14f80
VS
45 return line;
46}
47
78d14f80
VS
48bool wxStaticLineXmlHandler::CanHandle(wxXmlNode *node)
49{
50 return IsOfClass(node, wxT("wxStaticLine"));
51}
52
621be1ec 53#endif // wxUSE_XRC && wxUSE_STATLINE