+void wxControl::SetLabel(const wxString& label)
+{
+ // setting in wrong control causes crash
+ if ( ( wxDynamicCast(this,wxButton) != NULL ) ||
+ ( wxDynamicCast(this,wxCheckBox) != NULL ) ||
+ ( wxDynamicCast(this,wxToggleButton) != NULL ) )
+ {
+ CtlSetLabel(m_control,label);
+ }
+}
+
+wxString wxControl::GetLabel()
+{
+ // setting in wrong control causes crash
+ if ( wxDynamicCast(this,wxButton) ||
+ wxDynamicCast(this,wxCheckBox) ||
+ wxDynamicCast(this,wxToggleButton) )
+ {
+ return CtlGetLabel(m_control);
+ }
+
+ return wxEmptyString;
+}
+