How to change TCircularGauge colour

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
isharp
Newbie
Newbie
Posts: 4
Joined: Tue Sep 25, 2007 12:00 am

How to change TCircularGauge colour

Post by isharp » Thu Oct 18, 2007 3:01 pm

Hi all,

Try as I might, I can't seem to change the main face colour of the TCircularGauge. I can't do it with the editor, or by researching the various properties etc.

Please help, Thanks.

Ian Sharp.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Oct 18, 2007 3:20 pm

Hi Ian,

This is most likely because you need to disable the gradient.

At design-time you can go to Series -> Format -> Back -> Gradient tab and disable Visible property. Then go to Series -> Format -> Back -> Format tab an set Color property.

At run-time you can do this:

Code: Select all

  Series1.Face.Gradient.Visible:=false;
  Series1.Face.Color:=clRed;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

isharp
Newbie
Newbie
Posts: 4
Joined: Tue Sep 25, 2007 12:00 am

Post by isharp » Thu Oct 18, 2007 4:57 pm

Thanks Narcis,

I knew it had to be easy!

Ian.

Post Reply