- int pen_style = wxSOLID;
- if ( item == 1 )
- pen_style = wxTRANSPARENT;
- else if ( item == 2 )
- pen_style = wxDOT;
- else if ( item == 3 )
- pen_style = wxLONG_DASH;
- else if ( item == 4 )
- pen_style = wxSHORT_DASH;
- else if ( item == 5 )
- pen_style = wxDOT_DASH;
- else if ( item == 6 )
- pen_style = wxBDIAGONAL_HATCH;
- else if ( item == 7 )
- pen_style = wxCROSSDIAG_HATCH;
- else if ( item == 8 )
- pen_style = wxFDIAGONAL_HATCH;
- else if ( item == 9 )
- pen_style = wxCROSS_HATCH;
- else if ( item == 10 )
- pen_style = wxHORIZONTAL_HATCH;
- else if ( item == 11 )
- pen_style = wxVERTICAL_HATCH;
-
- wxPen pen( dc.GetTextForeground(), 3, pen_style );
-
- // Get text colour as pen colour
- dc.SetPen ( pen );
-
- if ( !(flags & wxCP_PAINTING_CONTROL) )
- {
- dc.DrawText(GetString( item ),
- r.x + 3,
- (r.y + 0) + ( (r.height/2) - dc.GetCharHeight() )/2
- );
-
- dc.DrawLine( r.x+5, r.y+((r.height/4)*3), r.x+r.width - 5, r.y+((r.height/4)*3) );
- }
- else
- {
- dc.DrawLine( r.x+5, r.y+r.height/2, r.x+r.width - 5, r.y+r.height/2 );
- }
-
- return true;
- }
-
- virtual wxCoord OnMeasureListItem( int WXUNUSED(item) )
- {
- return 24;
- }
-
- virtual wxCoord OnMeasureListItemWidth( int WXUNUSED(item) )
- {
- return -1; // default - will be measured from text width
- }
-
-};
-*/
-
-class wxPenStylePopup : public wxVListBoxComboPopup