tcbrowse row color

Post Reply
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

tcbrowse row color

Post by Marco Turco »

Hi all,
anybody know how can I change the row color in a tcbrowse when it lost the focus

I would like to change the dark gray into light gray nRgb(229,229,229)
Thanks in advance.


Image
Best Regards,

Marco Turco
SOFTWARE XP LLP
Jonathan Hodder
Posts: 77
Joined: Sun Aug 26, 2007 11:53 pm

Re: tcbrowse row color

Post by Jonathan Hodder »

From TCB DrawSelect
  • TCDrawCell( hWnd, hDC, ;
    nRowPos, nStartCol, If( nJ < nLastCol, aColSizes[ nJ ], -1), ;
    if( cPicture == nil, ;
    If( lBitMap, If( ! Empty( ::aBitmaps ),;
    ::aBitmaps[ uData ], uData ), ;
    cValToChar( Eval( oColumn:bData ) ) ), ;
    Transform( uData, cPicture ) ), ;
    oColumn:nAlign, ;
    nClrFore, ;
    If( lFocused .or. lNoLite,;
    nClrBack,;
    If( ::lCellStyle, If( nJ == ::nColAct, CLR_GRAY, nClrBack ), CLR_GRAY ) ),;
    hFont, ;
    If(lBitMap, If(lNoLite, 1, 2), 0),, ::nLineStyle )
Change CLR_GRAY to CLR_LIGHTGRAY and compile/link.

I have modified Luis's TCB over the years and can choose colour - or no colour among many other things.
If interested get in touch.

Jonathan at toolhouse dot co dot nz.
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: tcbrowse row color

Post by Horizon »

Hi,

What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY.

Thanks
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
Marco Turco
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London
Contact:

Re: tcbrowse row color

Post by Marco Turco »

Ok. Solved.
Thanks to all for the support.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: tcbrowse row color

Post by nageswaragunupudi »

Horizon wrote:Hi,

What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY.

Thanks
Your question is answered in this post
http://forums.fivetechsupport.com/viewt ... =3&t=16471
May be you have already seen that post
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: tcbrowse row color

Post by Horizon »

nageswaragunupudi wrote:
Horizon wrote:Hi,

What should I do same subject using in TXBrowse? Not focused color change to CLR_LIGHTGRAY.

Thanks
Your question is answered in this post
http://forums.fivetechsupport.com/viewt ... =3&t=16471
May be you have already seen that post[/quote

Thanks, It works.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Post Reply