respect background colour of wxStaticText in wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -102,6 +102,10 @@ wxGTK:
|
|||||||
|
|
||||||
- Don't crash if command line is not valid UTF-8 (Unicode build only)
|
- Don't crash if command line is not valid UTF-8 (Unicode build only)
|
||||||
|
|
||||||
|
wxUniv:
|
||||||
|
|
||||||
|
- It is now possible to set background colour of wxStaticText
|
||||||
|
|
||||||
|
|
||||||
2.8.0
|
2.8.0
|
||||||
-----
|
-----
|
||||||
|
@@ -88,6 +88,14 @@ wxSize wxStaticText::DoGetBestClientSize() const
|
|||||||
|
|
||||||
void wxStaticText::DoDraw(wxControlRenderer *renderer)
|
void wxStaticText::DoDraw(wxControlRenderer *renderer)
|
||||||
{
|
{
|
||||||
|
if ( UseBgCol() )
|
||||||
|
{
|
||||||
|
wxDC& dc = renderer->GetDC();
|
||||||
|
dc.SetBrush(GetBackgroundColour());
|
||||||
|
dc.SetPen(*wxTRANSPARENT_PEN);
|
||||||
|
dc.DrawRectangle(renderer->GetRect());
|
||||||
|
}
|
||||||
|
|
||||||
renderer->DrawLabel();
|
renderer->DrawLabel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user