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