void wxTextCtrl::Cut()
{
+#if (GTK_MINOR_VERSION == 1)
+ gtk_editable_cut_clipboard( GTK_EDITABLE(m_text) );
+#else
gtk_editable_cut_clipboard( GTK_EDITABLE(m_text), 0 );
+#endif
}
void wxTextCtrl::Copy()
{
+#if (GTK_MINOR_VERSION == 1)
+ gtk_editable_copy_clipboard( GTK_EDITABLE(m_text) );
+#else
gtk_editable_copy_clipboard( GTK_EDITABLE(m_text), 0 );
+#endif
}
void wxTextCtrl::Paste()
{
+#if (GTK_MINOR_VERSION == 1)
+ gtk_editable_paste_clipboard( GTK_EDITABLE(m_text) );
+#else
gtk_editable_paste_clipboard( GTK_EDITABLE(m_text), 0 );
+#endif
}
void wxTextCtrl::Clear()
gtk_widget_set_style( m_text, style );
}
-
+void wxTextCtrl::SetBackgroundColour( const wxColour &colour )
+{
+ wxCHECK_RET( m_text != NULL, "invalid text ctrl" );
+
+ m_backgroundColour = colour;
+
+ SetBackgroundColourHelper( GTK_TEXT(m_text)->text_area );
+}