use new pen/brush style names in samples

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2012-12-01 22:34:07 +00:00
parent de91443612
commit 0856cb2562
3 changed files with 30 additions and 30 deletions

View File

@@ -189,29 +189,29 @@ public:
r.Deflate(3);
r.height -= 2;
int penStyle = wxSOLID;
wxPenStyle penStyle = wxPENSTYLE_SOLID;
if ( item == 1 )
penStyle = wxTRANSPARENT;
penStyle = wxPENSTYLE_TRANSPARENT;
else if ( item == 2 )
penStyle = wxDOT;
penStyle = wxPENSTYLE_DOT;
else if ( item == 3 )
penStyle = wxLONG_DASH;
penStyle = wxPENSTYLE_LONG_DASH;
else if ( item == 4 )
penStyle = wxSHORT_DASH;
penStyle = wxPENSTYLE_SHORT_DASH;
else if ( item == 5 )
penStyle = wxDOT_DASH;
penStyle = wxPENSTYLE_DOT_DASH;
else if ( item == 6 )
penStyle = wxBDIAGONAL_HATCH;
penStyle = wxPENSTYLE_BDIAGONAL_HATCH;
else if ( item == 7 )
penStyle = wxCROSSDIAG_HATCH;
penStyle = wxPENSTYLE_CROSSDIAG_HATCH;
else if ( item == 8 )
penStyle = wxFDIAGONAL_HATCH;
penStyle = wxPENSTYLE_FDIAGONAL_HATCH;
else if ( item == 9 )
penStyle = wxCROSS_HATCH;
penStyle = wxPENSTYLE_CROSS_HATCH;
else if ( item == 10 )
penStyle = wxHORIZONTAL_HATCH;
penStyle = wxPENSTYLE_HORIZONTAL_HATCH;
else if ( item == 11 )
penStyle = wxVERTICAL_HATCH;
penStyle = wxPENSTYLE_VERTICAL_HATCH;
wxPen pen( dc.GetTextForeground(), 3, penStyle );