Pie Caption's Background Different Colors

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Pie Caption's Background Different Colors

Post by TestAlways » Tue May 08, 2012 6:18 pm

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
Attachments
Pie Captions.zip
(2.75 KiB) Downloaded 559 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Pie Caption's Background Different Colors

Post by Yeray » Wed May 09, 2012 11:39 am

Hi Ed,

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

Code: Select all

  lC.Brush.Style:=bsClear;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply