added status bar fields styles support (patch 988292)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -140,7 +140,12 @@ void wxStatusBarUniv::DoDraw(wxControlRenderer *renderer)
|
||||
flags |= wxCONTROL_ISDEFAULT;
|
||||
}
|
||||
|
||||
m_renderer->DrawStatusField(dc, rect, m_statusText[n], flags);
|
||||
int style;
|
||||
if (m_statusStyles)
|
||||
style = m_statusStyles[n];
|
||||
else
|
||||
style = wxSB_NORMAL;
|
||||
m_renderer->DrawStatusField(dc, rect, m_statusText[n], flags, style);
|
||||
}
|
||||
|
||||
rect.x += rect.width + borderBetweenFields;
|
||||
|
||||
Reference in New Issue
Block a user