Coloring items in a MultiCell DCBROWSECOL

This forum is for eXpress++ general support.
Post Reply
Message
Author
bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Coloring items in a MultiCell DCBROWSECOL

#1 Post 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

User avatar
Tom
Posts: 1167
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Coloring items in a MultiCell DCBROWSECOL

#2 Post by Tom »

Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

bobvolz
Posts: 114
Joined: Sun Jan 31, 2010 11:25 am

Re: Coloring items in a MultiCell DCBROWSECOL

#3 Post by bobvolz »

I kind of figured that. Back to the drawing board so to speak.
Thanks

Post Reply