Page 1 of 1

Custom Axis Labels - setting font color

Posted: Mon Dec 01, 2008 9:15 pm
by 10045810
In BCB, how do I set the font color of custom labels added with
CustomAxis->Items->Add(NN,"XXX")?

Thank you for your assistance.

Posted: Tue Dec 02, 2008 8:50 am
by narcis
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!