]>
git.saurik.com Git - wxWidgets.git/blob - contrib/src/xml/xh_radbt.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: XML resource for wxRadioButton
4 // Author: Bob Mitchell
7 // Copyright: (c) 2000 Bob Mitchell and Verant Interactive
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "xh_radbt.h"
15 // For compilers that support precompilation, includes "wx.h".
16 #include "wx/wxprec.h"
22 #include "wx/xml/xh_radbt.h"
23 #include "wx/radiobut.h"
27 wxRadioButtonXmlHandler::wxRadioButtonXmlHandler()
28 : wxXmlResourceHandler()
30 ADD_STYLE( wxRB_GROUP
);
33 wxObject
*wxRadioButtonXmlHandler::DoCreateResource()
35 /* BOBM - implementation note.
36 * once the wxBitmapRadioButton is implemented.
37 * look for a bitmap property. If not null,
38 * make it a wxBitmapRadioButton instead of the
39 * normal radio button.
42 wxRadioButton
*control
= new wxRadioButton(m_ParentAsWindow
,
45 GetPosition(), GetSize(),
51 control
->SetValue( GetBool(_T("value"), 0));
59 bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode
*node
)
61 return node
->GetName() == _T("radiobutton");