Use its own foreground colour in wxGenericStaticText.
For some reason, the control always drew itself using wxSYS_COLOUR_BTNTEXT. This is a good default, but it shouldn't ignore the explicitly set foreground colour, so use it instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -70,12 +70,7 @@ void wxGenericStaticText::OnPaint(wxPaintEvent& WXUNUSED(event))
|
|||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
|
|
||||||
wxRect rect = GetClientRect();
|
wxRect rect = GetClientRect();
|
||||||
if ( IsEnabled() )
|
if ( !IsEnabled() )
|
||||||
{
|
|
||||||
dc.SetTextForeground(
|
|
||||||
wxSystemSettings::GetColour(wxSYS_COLOUR_BTNTEXT));
|
|
||||||
}
|
|
||||||
else // paint disabled text
|
|
||||||
{
|
{
|
||||||
// draw shadow of the text
|
// draw shadow of the text
|
||||||
dc.SetTextForeground(
|
dc.SetTextForeground(
|
||||||
|
Reference in New Issue
Block a user