use wxToggleButtonXmlHandler::DoCreateBitmapToggleButton on supoorted platforms only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c631ad5452
commit
9015d579c8
@ -26,7 +26,9 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void DoCreateToggleButton(wxObject *control);
|
||||
#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
|
||||
virtual void DoCreateBitmapToggleButton(wxObject *control);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // wxUSE_XRC && wxUSE_TOGGLEBTN
|
||||
|
@ -36,7 +36,7 @@ wxObject *wxToggleButtonXmlHandler::DoCreateResource()
|
||||
|
||||
wxObject *control = m_instance;
|
||||
|
||||
#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__)
|
||||
#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
|
||||
|
||||
if (m_class == wxT("wxBitmapToggleButton"))
|
||||
{
|
||||
@ -88,6 +88,7 @@ void wxToggleButtonXmlHandler::DoCreateToggleButton(wxObject *control)
|
||||
button->SetValue(GetBool( wxT("checked")));
|
||||
}
|
||||
|
||||
#if !defined(__WXUNIVERSAL__) && !defined(__WXMOTIF__) && !defined(__WXPALMOS__) && !defined(__WXPM__) && !(defined(__WXGTK__) && !defined(__WXGTK20__))
|
||||
void wxToggleButtonXmlHandler::DoCreateBitmapToggleButton(wxObject *control)
|
||||
{
|
||||
wxBitmapToggleButton *button = wxDynamicCast(control, wxBitmapToggleButton);
|
||||
@ -102,5 +103,5 @@ void wxToggleButtonXmlHandler::DoCreateBitmapToggleButton(wxObject *control)
|
||||
|
||||
button->SetValue(GetBool( wxT("checked")));
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // wxUSE_XRC && wxUSE_TOGGLEBTN
|
||||
|
Loading…
Reference in New Issue
Block a user