- dc.DrawBitmap( bitmap, tool->m_x+3, tool->m_y+3, TRUE );
-
- dc.SetPen( *wxWHITE_PEN );
- dc.DrawLine( tool->m_x, tool->m_y, tool->m_x+m_defaultWidth+5, tool->m_y );
- dc.DrawLine( tool->m_x, tool->m_y, tool->m_x, tool->m_y+m_defaultHeight+5 );
- dc.DrawLine( tool->m_x+m_defaultWidth+4, tool->m_y, tool->m_x+m_defaultWidth+4, tool->m_y+2 );
- dc.DrawLine( tool->m_x, tool->m_y+m_defaultHeight+4, tool->m_x+2, tool->m_y+m_defaultHeight+4 );
-
- dc.SetPen( *wxBLACK_PEN );
- dc.DrawLine( tool->m_x, tool->m_y+m_defaultHeight+5, tool->m_x+m_defaultWidth+6, tool->m_y+m_defaultHeight+5 );
- dc.DrawLine( tool->m_x+m_defaultWidth+5, tool->m_y, tool->m_x+m_defaultWidth+5, tool->m_y+m_defaultHeight+6 );
-
- dc.SetPen( *wxGREY_PEN );
- dc.DrawLine( tool->m_x+1, tool->m_y+m_defaultHeight+4, tool->m_x+m_defaultWidth+5, tool->m_y+m_defaultHeight+4 );
- dc.DrawLine( tool->m_x+m_defaultWidth+4, tool->m_y+1, tool->m_x+m_defaultWidth+4, tool->m_y+m_defaultHeight+5 );
+ rect.width = m_defaultWidth;
+ rect.height = tool->IsSeparator() ? m_widthSeparator : m_defaultHeight;
+ }
+ else // horizontal
+ {
+ rect.width = tool->IsSeparator() ? m_widthSeparator : m_defaultWidth;
+ rect.height = m_defaultHeight;