make bitmap button background more visible
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -493,9 +493,9 @@ wxBitmap ButtonWidgetsPage::CreateBitmap(const wxString& label)
|
|||||||
wxBitmap bmp(180, 70); // shouldn't hardcode but it's simpler like this
|
wxBitmap bmp(180, 70); // shouldn't hardcode but it's simpler like this
|
||||||
wxMemoryDC dc;
|
wxMemoryDC dc;
|
||||||
dc.SelectObject(bmp);
|
dc.SelectObject(bmp);
|
||||||
dc.SetBackground(wxBrush(*wxWHITE));
|
dc.SetBackground(wxBrush(*wxCYAN));
|
||||||
dc.Clear();
|
dc.Clear();
|
||||||
dc.SetTextForeground(*wxBLUE);
|
dc.SetTextForeground(*wxBLACK);
|
||||||
dc.DrawLabel(wxStripMenuCodes(m_textLabel->GetValue()) + _T("\n")
|
dc.DrawLabel(wxStripMenuCodes(m_textLabel->GetValue()) + _T("\n")
|
||||||
_T("(") + label + _T(" state)"),
|
_T("(") + label + _T(" state)"),
|
||||||
wxArtProvider::GetBitmap(wxART_INFORMATION),
|
wxArtProvider::GetBitmap(wxART_INFORMATION),
|
||||||
|
Reference in New Issue
Block a user