FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour color fill xbrowse
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
color fill xbrowse
Posted: Sun Jul 19, 2009 08:40 PM

Is the a way to fill an xbrowse record with color as can be done in an excel spreadsheet?

Thank you

Harvey
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: color fill xbrowse
Posted: Sun Jul 19, 2009 09:53 PM

1) If we want to color the entire browse area,
oBrw:bClrStd := { || { <nForeClr>, <nBackClr > } }

2) If we want to conditionally color one or some rows,
oBrw:bClrStd := { || If( <lCondition>, { <nForeClr_1>, <nBackClr_1 }, { <nForeClr_2>, <nBackClr_2 } ) }

3) To color one entire column, use the above code for oCol:bClrStd := ...

Regards



G. N. Rao.

Hyderabad, India
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: color fill xbrowse
Posted: Mon Jul 20, 2009 02:53 AM

Thanks for the quick response. How can the user set the color in a cell on the fly?

Thank you

Harvey

Continue the discussion