Page 1 of 1

Pie Caption's Background Different Colors

Posted: Tue May 08, 2012 6:18 pm
by 10546565
XE2.

I have two pie captions on the same TChart. I show a title on top of the different pie series, but the title of the right one has a different background color than the title of the one on the left.

Here is a snippet of screen shot:

Image

Why are they different?

I have a attached a demo project that reproduces this.

Ed Dressel

Re: Pie Caption's Background Different Colors

Posted: Wed May 09, 2012 11:39 am
by yeray
Hi Ed,

Add this in your DrawPieSeriesCaption function, somewhere between assigning lC and calling lC.TextOut:

Code: Select all

  lC.Brush.Style:=bsClear;