/////////////////////////////////////////////////////////////////////////////
-// Name: xh_tglbtn.cpp
+// Name: src/xrc/xh_tglbtn.cpp
// Purpose: XRC resource for wxToggleButton
// Author: Bob Mitchell
// Created: 2000/03/21
{
wxToggleButton *button = wxDynamicCast(control, wxToggleButton);
- wxString label = GetText(wxT("label"));
-
button->Create(m_parentAsWindow,
GetID(),
-#if defined(__WXUNIVERSAL__)
- !label.empty() ? label : GetBitmap(wxT("bitmap"), wxART_BUTTON),
-#else
- label,
-#endif
+ GetText(wxT("label")),
GetPosition(), GetSize(),
GetStyle(),
wxDefaultValidator,