IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl)
-bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& label,
- const wxPoint& pos, const wxSize& size, long style,
- const wxValidator& validator, const wxString& name )
+bool wxRadioButton::Create( wxWindow *parent,
+ wxWindowID id,
+ const wxString& label,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style,
+ const wxValidator& validator,
+ const wxString& name )
{
m_acceptsFocus = TRUE;
m_needParent = TRUE;
- m_isRadioButton = TRUE;
m_blockEvent = FALSE;
while (node)
{
wxWindow *child = node->GetData();
- if (child->m_isRadioButton)
+ if (child->IsRadioButton())
{
chief = (wxRadioButton*) child;
- if (child->HasFlag(wxRB_GROUP)) break;
+ if (child->HasFlag(wxRB_GROUP))
+ break;
}
node = node->GetPrevious();
}
}
}
- m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, label.mbc_str() );
+ m_widget = gtk_radio_button_new_with_label( m_radioButtonGroup, wxGTK_CONV( label ) );
SetLabel(label);
wxControl::SetLabel( label );
GtkLabel *g_label = GTK_LABEL( BUTTON_CHILD(m_widget) );
- gtk_label_set( g_label, GetLabel().mbc_str() );
+ gtk_label_set( g_label, wxGTK_CONV( GetLabel() ) );
}
void wxRadioButton::SetValue( bool val )