3 skipped lines |
4 | | 4 | | // Author: Aleksandras Gluchovas |
|
|
|
7 | | // RCS-ID: $Id: newbmpbtn.cpp,v 1.18 2005/08/23 16:02:44 ABX Exp $ | | 7 | | // RCS-ID: $Id: newbmpbtn.cpp,v 1.18.2.1 2006/01/17 15:05:08 JS Exp $ |
8 | | 8 | | // Copyright: (c) Aleksandras Gluchovas |
|
9 | | 9 | | // Licence: wxWindows licence |
|
10 | | 10 | | ///////////////////////////////////////////////////////////////////////////// |
|
313 skipped lines |
324 | | 324 | | wxPen& lowerRightSidePen ) |
|
|
326 | | 326 | | wxBitmap* pBmp = GetStateLabel(); |
|
327 | | | | |
328 | | 327 | | int x = mMarginX - (outerLevel + 2); |
|
329 | | 328 | | int y = mMarginY - (outerLevel + 2); |
|
330 | | | | |
331 | | 329 | | int height = pBmp->GetHeight() + (outerLevel + 2)*2 - 1; |
|
332 | | 330 | | int width = pBmp->GetWidth() + (outerLevel + 2)*2 - 1; |
|
333 | | | | |
334 | | 331 | | dc.SetPen( upperLeftSidePen ); |
|
335 | | 332 | | dc.DrawLine( x,y, x + width, y ); |
|
336 | | 333 | | dc.DrawLine( x,y, x, y + height ); |
|
| | 334 | | dc.DrawLine( x,y+1, x + width , y +1 ); // top |
| | 335 | | dc.DrawLine( x+1,y, x+1, y + height ); // left |
|
338 | | 337 | | dc.SetPen( lowerRightSidePen ); |
|
339 | | 338 | | dc.DrawLine( x + width, y, x + width, y + height + 1 ); |
|
340 | | 339 | | dc.DrawLine( x, y + height, x + width, y + height ); |
|
| | 340 | | dc.DrawLine( x + width-1, y+1, x + width-1, y + height +1 ); // right |
| | 341 | | dc.DrawLine( x +1, y + height-1, x + width, y + height-1 ); // bottom |
|
|
343 | | 344 | | void wxNewBitmapButton::DestroyLabels() |
|
512 skipped lines |