Fix tons of warnings in wxMSW after deprecating wxPen/wxBrush int styles &c.
Replacement of FUTURE_WXWIN_COMPATIBILITY_3_0 with WXWIN_COMPATIBILITY_3_0 in r75532 resulted in tons of warnings as all code using wxSOLID and similar constants now uses the deprecated methods taking int instead of the preferred ones taking wx{Pen,Brush}Style (and similarly for wxFont{Style,Weight,Family}). Fix all of them but this also would seem to mean that this change might not be such a good idea at all. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1275,7 +1275,7 @@ void wxPropertyGrid::CalculateFontAndBitmapStuff( int vspacing )
|
||||
if ( !(m_windowStyle & wxPG_HIDE_MARGIN) )
|
||||
m_marginWidth = m_gutterWidth*2 + m_iconWidth;
|
||||
|
||||
m_captionFont.SetWeight(wxBOLD);
|
||||
m_captionFont.SetWeight(wxFONTWEIGHT_BOLD);
|
||||
GetTextExtent(wxS("jG"), &x, &y, 0, 0, &m_captionFont);
|
||||
|
||||
m_lineHeight = m_fontHeight+(2*m_spacingy)+1;
|
||||
@@ -2112,8 +2112,8 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
|
||||
|
||||
wxBrush marginBrush(m_colMargin);
|
||||
wxPen marginPen(m_colMargin);
|
||||
wxBrush capbgbrush(m_colCapBack,wxSOLID);
|
||||
wxPen linepen(m_colLine,1,wxSOLID);
|
||||
wxBrush capbgbrush(m_colCapBack,wxBRUSHSTYLE_SOLID);
|
||||
wxPen linepen(m_colLine,1,wxPENSTYLE_SOLID);
|
||||
|
||||
wxColour selBackCol;
|
||||
if ( isPgEnabled )
|
||||
@@ -2122,7 +2122,7 @@ int wxPropertyGrid::DoDrawItems( wxDC& dc,
|
||||
selBackCol = m_colMargin;
|
||||
|
||||
// pen that has same colour as text
|
||||
wxPen outlinepen(m_colPropFore,1,wxSOLID);
|
||||
wxPen outlinepen(m_colPropFore,1,wxPENSTYLE_SOLID);
|
||||
|
||||
//
|
||||
// Clear margin with background colour
|
||||
|
Reference in New Issue
Block a user