TXBrowse changes

TXBrowse changes

Postby Loach » Tue Apr 14, 2009 7:19 am

Hi!
I made some changes in class txbrowse:
1) in class TXBrwColumn I made new
DATA lSelectall
and in the begining of method "New" I put
DEFAULT ::lSelectall:=.t.
then in method "Edit" instead of string
::oEditGet:SelectAll()
I put:
if ::lSelectall
::oEditGet:SelectAll()
endif
Now I can make a choice between variant of editing cell starting.

2) in method "PaintData" instead of string
FillRect( hDC, {nTop, nRectCol, nBottom, Min( nRectCol + nRectWidth, ::oBrw:BrwWidth() - 4 ) }, hBrush )
I put:
if valtype(acolors[2])<>'B'
FillRect( hDC, {nTop, nRectCol, nBottom, Min( nRectCol + nRectWidth, ::oBrw:BrwWidth() - 4 ) }, hBrush )
else
GradientFill( hDC, nRow - 1, nCol, nRow + nHeight - 1, nCol + nWidth, ;
Eval( acolors[2], .t. ) )
endif
Now I can paint gradient hilight cell (like in header...) by calling:
oBrw:bClrSelFocus:={|| { CLR_BLACK, { || { { 1, CLR_WHITE, CLR_NBROWN } } } } }
instead
oBrw:bClrSelFocus:={|| { CLR_BLACK, CLR_NBROWN } }
To my mind this picture:
Image
looks better, then this:
Image

So, my question is:
Is this a right corrections, that I made? Thanks !
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Giovany Vecchi and 65 guests