FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour tcbrowse row color
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
tcbrowse row color
Posted: Tue Aug 25, 2009 03:54 PM
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.


Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: tcbrowse row color
Posted: Tue Aug 25, 2009 07:21 PM

Did you try using bLostFocus codeblock?

EMG

Posts: 77
Joined: Sun Aug 26, 2007 11:53 PM
Re: tcbrowse row color
Posted: Tue Aug 25, 2009 11:15 PM
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 )
    [/list:u]

    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.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: tcbrowse row color
Posted: Wed Aug 26, 2009 08:56 AM

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.06
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: tcbrowse row color
Posted: Wed Aug 26, 2009 10:17 AM

Ok. Solved.
Thanks to all for the support.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: tcbrowse row color
Posted: Thu Aug 27, 2009 04:20 AM
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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: tcbrowse row color
Posted: Thu Aug 27, 2009 07:09 AM
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.06

Continue the discussion