Labels are not clipped (D5, TeePro 7)

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Obelix
Newbie
Newbie
Posts: 10
Joined: Thu Oct 21, 2004 4:00 am

Labels are not clipped (D5, TeePro 7)

Post by Obelix » Thu Nov 04, 2004 3:57 pm

When you change the labelsize to values <> 0 and the LeftAxis.LabelsAlign to alOpposite, the labels paint their contents inside the series. Any idea to automatically (or manually) clip the text?

Tia Obelix

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Thu Nov 04, 2004 11:08 pm

Hi Obelix,

I cannot reproduce the problem here using the following code :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(5);
Chart1.Axes.Left.LabelsSize := 100;
end;

procedure TForm1.RadioButton1Click(Sender: TObject);
begin
if Sender = RadioButton1 then
  Chart1.Axes.Left.LabelsAlign := alDefault
else
  Chart1.Axes.Left.LabelsAlign := alOpposite;
end;

Obelix
Newbie
Newbie
Posts: 10
Joined: Thu Oct 21, 2004 4:00 am

Post by Obelix » Fri Nov 05, 2004 8:57 am

Your code is working, but please change the code to:
Chart1.Axes.Left.LabelsSize := 20;

The starting/ending positions for labels (LabelsAlign = alOpposite or LabelsAlign = alDefault) are not the same. LabelsAlign = alOpposite let the labels begin more pixels to the right.

Tia Obelix

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Nov 05, 2004 5:24 pm

Hi Obelix,

I'm sorry, I cannot see the problem here using the latest TeeChart Pro v7.01. Could you please send me a simple example directly to pep@steema.com ?

Post Reply