FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse - Cell Color
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
XBrowse - Cell Color
Posted: Fri Aug 06, 2010 04:10 PM
Hi,

Is there any way to change a cell color in an xbrowse based on a value from another column in the same row?

Example: If the cell in column 1 = "B" I would like to change the cell color of column 3 to red but only for that row.


Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)
Posts: 3358
Joined: Fri Oct 07, 2005 08:20 PM
Re: XBrowse - Cell Color
Posted: Fri Aug 06, 2010 04:28 PM
Jeff:

I do this way:
Code (fw): Select all Collapse
oBrw:aCols[ 7]:bClrStd := {|| { IIF( oRsPro:Fields("PRO_PRE"):Value  > 10000, CLR_HRED, CLR_HBLUE), CLR_GRAY } }


Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
Posts: 933
Joined: Sun Oct 09, 2005 01:05 PM
Re: XBrowse - Cell Color
Posted: Fri Aug 06, 2010 04:34 PM

Thanks Armando. Exactly what I needed :)

Thanks,

Jeff Barnes



(FWH 16.11, xHarbour 1.2.3, Bcc730)

Continue the discussion