METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
local oBtn, oBrush
if !::lBtnTransparent
WndBoxRaised(hDC, oRect:nTop - 1, oRect:nLeft - 1,;
oRect:nBottom, oRect:nRight + 1 ) // ButtonGet
endif
if ::nEditType == EDIT_LISTBOX .or. ::nEditType == EDIT_GET_LISTBOX
::oBtnElip:Hide()
oBtn := ::oBtnList
else
::oBtnList:Hide()
oBtn := ::oBtnElip
endif
oBtn:Move( oRect:nTop, oRect:nLeft, oRect:nWidth, oRect:nHeight, .f.) // ButtonGet
oBtn:Show()
oBtn:GetDC()
if .not. ::lBtnTransparent
oRect:nRight += 1
FillRect( hDC, oRect:aRect, oBtn:oBrush:hBrush )
else
FillRectEx( hDC, oRect:aRect, aColors[ 2 ] )
endif
oBtn:lTransparent := ::lBtnTransparent
if ! Empty( oBtn:hBitmap1 )
oBtn:PaintBitmap()
elseif ! Empty( oBtn:cCaption )
oBtn:PaintCaption()
endif
oBtn:ReleaseDC()
/*
if ::lBtnTransparent
oBtn:lTransparent := .f.
oBtn:bClrGrad := { || { { 1, aColors[ 2 ], aColors[ 2 ] } } }
endif
oBtn:Refresh()
*/
return nil
METHOD PaintCellBtn( hDC, oRect, aColors ) CLASS TXBrwColumn
local oBtn, oBrush
if !::lBtnTransparent
WndBoxRaised(hDC, oRect:nTop - 1, oRect:nLeft - 1,;
oRect:nBottom, oRect:nRight + 1 ) // ButtonGet
endif
if ::nEditType == EDIT_LISTBOX .or. ::nEditType == EDIT_GET_LISTBOX
::oBtnElip:Hide()
oBtn := ::oBtnList
else
::oBtnList:Hide()
oBtn := ::oBtnElip
endif
oBtn:Move( oRect:nTop, oRect:nLeft, oRect:nWidth, oRect:nHeight, .f.) // ButtonGet
oBtn:Show()
/*
oBtn:GetDC()
if .not. ::lBtnTransparent
oRect:nRight += 1
FillRect( hDC, oRect:aRect, oBtn:oBrush:hBrush )
else
FillRectEx( hDC, oRect:aRect, aColors[ 2 ] )
endif
oBtn:lTransparent := ::lBtnTransparent
if ! Empty( oBtn:hBitmap1 )
oBtn:PaintBitmap()
elseif ! Empty( oBtn:cCaption )
oBtn:PaintCaption()
endif
oBtn:ReleaseDC()
*/
if ::lBtnTransparent
oBtn:lTransparent := .f.
oBtn:bClrGrad := { || { { 1, aColors[ 2 ], aColors[ 2 ] } } }
endif
oBtn:Refresh()
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 72 guests