* Fix: There was a painting error in Class TBtnBmp due to recent changes in
Class TBtnBmp. Now it is ok.
if ::lBorder
WndBox( ::hDC, 0, 0, ::nHeight - 1, ::nWidth - 1 )
endif
Enrico Maria Giordano wrote:Antonio,
no, sorry. The border went away, but:
1. it goes back when the mouse is over the button
2. the bitmap is still not centered
3. there is no 3D effect on the button anymore
EMG
METHOD Paint() CLASS TBtnBmp
// local aInfo := ::DispBegin()
if ::lTransparent
SetBrushOrgEx( ::hDC, nBmpWidth( ::oWnd:oBrush:hBitmap ) - ::nLeft,;
nBmpHeight( ::oWnd:oBrush:hBitmap ) - ::nTop )
FillRect( ::hDC, GetClientRect( ::hWnd ), ::oWnd:oBrush:hBrush )
else
if Empty( ::bClrGrad )
FillRect( ::hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush )
else
if ::aGrad != nil
GradientFill( ::hDC, 0, 0, ::nHeight, ::nWidth, ::aGrad() )
endif
endif
endif
// ::DispEnd( aInfo )
return nil
Antonio Linares wrote:This way the background is properly filled. Now if you uncomment the calls to DispBegin() and DispEnd() an unexpected border appears at the top and at the left.
Return to Bugs report & fixes / Informe de errores y arreglos
Users browsing this forum: No registered users and 3 guests