SetBackground for ListBox and others

Removed the old and famous wxSplitter bug


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-10-21 22:21:09 +00:00
parent 0d57be4594
commit fc54776e31
19 changed files with 334 additions and 112 deletions

View File

@@ -464,12 +464,11 @@ void wxTextCtrl::SetFont( const wxFont &font )
gtk_widget_set_style( m_text, style );
}
// as our GTK widget is m_text and not m_widget, we have to override
// SetBackgroundColour() to make it work
void wxTextCtrl::SetBackgroundColour( const wxColour &colour )
{
wxCHECK_RET( m_text != NULL, "invalid text ctrl" );
// NB: the GtkEntry and GtkText classes have text_area at the same offset
SetBackgroundColourHelper( colour, GTK_TEXT(m_text)->text_area );
m_backgroundColour = colour;
SetBackgroundColourHelper( GTK_TEXT(m_text)->text_area );
}