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
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: tcbrowse row color

Post by Enrico Maria Giordano »

Did you try using bLostFocus codeblock?

EMG
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: 1323
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 4 times

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 & MSVC 2022 & FWH 23.04
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: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
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
viewtopic.php?f=3&t=16471
May be you have already seen that post
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 1323
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 4 times

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
viewtopic.php?f=3&t=16471
May be you have already seen that post[/quote

Thanks, It works.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Post Reply