tcbrowse row color

tcbrowse row color

Postby Marco Turco » Tue Aug 25, 2009 3: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.


Image
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: tcbrowse row color

Postby Enrico Maria Giordano » Tue Aug 25, 2009 7:21 pm

Did you try using bLostFocus codeblock?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: tcbrowse row color

Postby Jonathan Hodder » 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 )

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.
Jonathan Hodder
 
Posts: 77
Joined: Sun Aug 26, 2007 11:53 pm

Re: tcbrowse row color

Postby Horizon » Wed Aug 26, 2009 8: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: tcbrowse row color

Postby Marco Turco » Wed Aug 26, 2009 10:17 am

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

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: tcbrowse row color

Postby nageswaragunupudi » Thu Aug 27, 2009 4: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
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: tcbrowse row color

Postby Horizon » Thu Aug 27, 2009 7: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 88 guests