Custom Axis Labels - setting font color

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MTW
Newbie
Newbie
Posts: 21
Joined: Thu Jun 28, 2007 12:00 am

Custom Axis Labels - setting font color

Post by MTW » Mon Dec 01, 2008 9:15 pm

In BCB, how do I set the font color of custom labels added with
CustomAxis->Items->Add(NN,"XXX")?

Thank you for your assistance.

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

Post by Narcís » Tue Dec 02, 2008 8:50 am

Hi MTW,

You can do this:

Code: Select all

  axis->Items->Add(123,"Hello")->Font->Size = 16;
Or this:

Code: Select all

  TAxisItem *axislabel = axis->Items->Add(-100);
  axislabel->Transparent = false;
  axislabel->Transparency = 50;
  axislabel->Color = clBlue;
Hope this helps!
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

Post Reply