]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xml/xh_scrol.cpp
c614a6b9dd98dd6f0e31e42514e9707cdc120716
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML resource for wxScrollBar
7 // Copyright: (c) 2000 Brian Gavin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_scrol.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xml/xh_scrol.h"
23 #include "wx/scrolbar.h"
26 wxScrollBarXmlHandler::wxScrollBarXmlHandler()
27 : wxXmlResourceHandler()
29 ADD_STYLE( wxSB_HORIZONTAL
);
30 ADD_STYLE( wxSB_VERTICAL
);
34 wxObject
*wxScrollBarXmlHandler::DoCreateResource()
36 wxScrollBar
*control
= new wxScrollBar(m_parentAsWindow
,
38 GetPosition(), GetSize(),
43 control
->SetScrollbar(GetLong( wxT("value"), 0),
44 GetLong( wxT("thumbsize"),1),
45 GetLong( wxT("range"), 10),
46 GetLong( wxT("pagesize"),1)
57 bool wxScrollBarXmlHandler::CanHandle(wxXmlNode
*node
)
59 return IsOfClass(node
, wxT("wxScrollBar"));