Allow changing the colour of wxInfoBarGeneric text.
Override SetForegroundColour() to forward it to the text control. See #15671. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,6 +110,17 @@ bool wxInfoBarGeneric::SetFont(const wxFont& font)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxInfoBarGeneric::SetForegroundColour(const wxColor& colour)
|
||||
{
|
||||
if ( !wxInfoBarBase::SetForegroundColour(colour) )
|
||||
return false;
|
||||
|
||||
if ( m_text )
|
||||
m_text->SetForegroundColour(colour);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
wxInfoBarGeneric::BarPlacement wxInfoBarGeneric::GetBarPlacement() const
|
||||
{
|
||||
wxSizer * const sizer = GetContainingSizer();
|
||||
|
||||
Reference in New Issue
Block a user