| 178 | } |
| 179 | |
| 180 | void ToolFrame::OnPaint( wxPaintEvent & WXUNUSED(event) ) |
| 181 | { |
| 182 | wxPaintDC dc( this ); |
| 183 | wxSize sz = GetSize(); |
| 184 | wxRect r; |
| 185 | |
| 186 | dc.SetPen( theTheme.Colour( clrTrackPanelText ) ); |
| 187 | dc.SetBackground( wxBrush( theTheme.Colour( clrMedium ) ) ); |
| 188 | dc.Clear(); |
| 189 | dc.SetBrush( *wxTRANSPARENT_BRUSH ); |
| 190 | dc.DrawRectangle( 0, 0, sz.GetWidth(), sz.GetHeight() ); |
| 191 | |
| 192 | if( mBar && mBar->IsResizable() ) |
| 193 | { |
| 194 | r.x = sz.x - sizerW - 2, |
| 195 | r.y = sz.y - sizerW - 2; |
| 196 | r.width = sizerW + 2; |
| 197 | r.height = sizerW + 2; |
| 198 | |
| 199 | AColor::Line(dc, r.GetLeft(), r.GetBottom(), r.GetRight(), r.GetTop() ); |
| 200 | AColor::Line(dc, r.GetLeft() + 3, r.GetBottom(), r.GetRight(), r.GetTop() + 3 ); |
| 201 | AColor::Line(dc, r.GetLeft() + 6, r.GetBottom(), r.GetRight(), r.GetTop() + 6 ); |
| 202 | AColor::Line(dc, r.GetLeft() + 9, r.GetBottom(), r.GetRight(), r.GetTop() + 9 ); |
| 203 | } |
| 204 | |
| 205 | } |
| 206 | |
| 207 | void ToolFrame::OnMotion( wxMouseEvent & event ) |
| 208 | { |