Changed wxWindowBase foreground to use wxSystemSettings, and changed wxTextCtrl

to only be grey for single-line read-only controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-01-13 14:26:30 +00:00
parent d1e418eaea
commit f6e4e9ea30
2 changed files with 4 additions and 4 deletions

View File

@@ -353,10 +353,8 @@ void wxTextCtrl::AdoptAttributesFromHWND()
void wxTextCtrl::SetupColours()
{
// FIXME why is bg colour not inherited from parent?
wxColour bkgndColour;
if (IsEditable())
if (IsEditable() || (m_windowStyle & wxTE_MULTILINE))
bkgndColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW);
else
bkgndColour = wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DFACE);