Page 1 of 1

Coloring items in a MultiCell DCBROWSECOL

Posted: Sun Feb 19, 2023 8:47 am
by bobvolz
Hi All;

I use the below format to 'stack' data items in a browse cell with their own headers.
In the example below they are all fields in the file ACEBUYER. DELIVCLEAR is a Logical, CLEARDATE is a Date and CLEARBY is a character strip.

If DELIVCLEAR is True I want the Y to be Green .

I have tried COLOR {|| IIF(ACEBUYER->DELIVCLEAR, {1,DC_KEYLIME},{1,DC_SALMON})}

It seems this COLOR option will only color the entire 3 items and when it does it writes data on top of the data already in the browse cell
to make it unreadable. Any suggestions?. I'm by no means a master at subclassing.

Bob Volz

aPres := ;
{ { XBP_PP_COL_HA_FGCLR, GRA_CLR_WHITE }, ;
{ XBP_PP_COL_HA_BGCLR, GRA_CLR_DARKGRAY }, ;
{ XBP_PP_COL_DA_ROWSEPARATOR, XBPCOL_SEP_DOTTED }, ;
{ XBP_PP_COL_DA_COLSEPARATOR, XBPCOL_SEP_DOTTED }, ;
{ XBP_PP_COL_DA_ROWHEIGHT, 60 }, ;
{ XBP_PP_COL_DA_HILITE_BGCLR, GRA_CLR_PALEGRAY }, ;
{ XBP_PP_COL_DA_CELLHEIGHT, 25 } }


@ 4.5,1 DCBROWSE oBrowse ALIAS 'ACEBUYER' ;
SIZE 210,30 ;
HEADLINES 3;
FONT '14.Lucida' ;
AUTOREFRESH(3000) ;
PRESENTATION aPres


DCBROWSECOL DATA {{|| ACEBUYER->DELIVCLEAR}, ;
{|| ACEBUYER->CLEARDATE} , ;
{|| ACEBUYER->CLEARBY}} ;
WIDTH 6 HEADER "ProcessStart;StartDate;StartBy" PARENT oBrowse

Re: Coloring items in a MultiCell DCBROWSECOL

Posted: Sun Feb 19, 2023 8:51 am
by Tom

Re: Coloring items in a MultiCell DCBROWSECOL

Posted: Sun Feb 19, 2023 11:49 am
by bobvolz
I kind of figured that. Back to the drawing board so to speak.
Thanks