Page 1 of 1

Background Colors in Multirow Browsing

Posted: Sun Dec 11, 2011 4:07 pm
by Leon Berger
Hi from Vienna,

how can I change the backgroundcolor of a cell in a multirow dcbrowse?

Regards
Leon

Re: Background Colors in Multirow Browsing

Posted: Mon Dec 12, 2011 3:10 am
by PedroAlex
Leon, try this

DCBROWSECOL FIELD FOCAB->NUMERO HEADER "Codigo" PARENT oBrowFObra WIDTH 4 COLOR { Nil, GraMakeRGBColor({255,255,224}) }


Regards
Pedro

Re: Background Colors in Multirow Browsing

Posted: Mon Dec 12, 2011 8:42 am
by Leon Berger
comercial wrote:DCBROWSECOL FIELD FOCAB->NUMERO HEADER "Codigo" PARENT oBrowFObra WIDTH 4 COLOR { Nil, GraMakeRGBColor({255,255,224}) }
Thanks Pedro, but this does not work in a multirow browse, only in a singlerow browse.

Leon

Re: Background Colors in Multirow Browsing

Posted: Tue Dec 13, 2011 7:53 am
by PedroAlex
Leon.

Try this

DCBROWSECOL FIELD FOCAB->NUMERO HEADER "Codigo" PARENT oBrowFObra WIDTH 4 COLOR {|| { Nil, GraMakeRGBColor({144,238,144}) } }

Regards
Pedro

Re: Background Colors in Multirow Browsing

Posted: Tue Dec 13, 2011 8:36 am
by Leon Berger
comercial wrote:Try this

DCBROWSECOL FIELD FOCAB->NUMERO HEADER "Codigo" PARENT oBrowFObra WIDTH 4 COLOR {|| { Nil, GraMakeRGBColor({144,238,144}) } }
Pedro, no chance. I got the new color, but all data in the cell are painted 2 times.

Leon

Re: Background Colors in Multirow Browsing

Posted: Wed Dec 14, 2011 8:51 am
by PedroAlex
Leon.

Post your dcbrowseline code , and a picture to see the aspect.

I use this sample :
DCBROWSECOL DATA { {|| FOCAB->NOPREC }, {|| FOCAB->MATRICULA}} HEADER "Recebido/Matricula" PARENT oBrowFObra WIDTH 12 COLOR {|| { Nil, GraMakeRGBColor({173,216,230}) } }

and it works fine ..

regards
pedro

Re: Background Colors in Multirow Browsing

Posted: Wed Dec 14, 2011 4:54 pm
by Leon Berger
Many thanks Pedro, i got some help and solved at least the problem with a subclass and ownerdraw ;-)

Regards
Leon