- }
- }
- else
-#endif
- {
- // Do the gradient fill:
- static int grayValues[] =
- {
- 0xA0, 0xF6, 0xED, 0xE4, 0xE2, 0xD0, 0xA0
- };
- int i;
-
- dc.SetBrush( *wxTRANSPARENT_BRUSH );
- if (orient == wxVERTICAL)
- {
- for (i=0; i < (int)WXSIZEOF(grayValues); i++)
- {
- dc.SetPen( wxPen( wxColour( grayValues[i], grayValues[i], grayValues[i] ), 1, wxSOLID ) );
- dc.DrawRectangle( position + i, 0, 1, size.y );
- }
- }
- else
- {
- for (i=0; i < (int)WXSIZEOF(grayValues); i++)
- {
- dc.SetPen( wxPen( wxColour( grayValues[i], grayValues[i], grayValues[i] ), 1, wxSOLID ) );
- dc.DrawRectangle( 0, position + i, size.x, 1 );
- }
- }