Marks Angle

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

Marks Angle

Post by tb » Fri Sep 17, 2004 12:40 pm

Hi,

Could somebody please helt me.

I'm using TeeChart 6 Delphi 7.

I would like to add a point to my chart with a label having an angle. Could you please teel me the property to set. I can see that in TeeChart 7 the TSeriesMarks obj has an Angle property, but this is not the case in TeeChart 6. Where can I set the angle ?

Small example:

var
PSeries: TPointSeries;
begin
PSeries:= TPointSeries.Create(nil);
PSeries.Marks.Style := smsLabel;
PSeries.Marks.Visible := True;
// ?? PSeries.Marks.Angle <- does not exist ! :cry:
PSeries.AddXY(StrToFloat(eX.Text),StrToFloat(eY.Text),'ged') ;
Chart1.AddSeries(PSeries);
end;

Regards,
-Torben

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

Post by Pep » Fri Sep 17, 2004 5:20 pm

Hi Torben,

strange.. I've TC v6.01 for Delphi7 installed here and exists.
Also, you can check on example of this taht is included in the Demo features project under :
All Features -> Welcome ! -> Miscellaneous -> Series Marks -> Rotation Angle.

tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

more Marks

Post by tb » Mon Sep 20, 2004 8:52 am

Strange - I't doesn't appear here. If I try to write to the property I get an "undeclared Identifier : 'Angle' " when trying to compile ... ?

In the Chart Editor I can rotate angles etc .....I don't get it - is there an error in my installtion or am I missing an update or something ?

The example is simple enough:

procedure TForm1.Button1Click(Sender: TObject);
var
PSeries: TPointSeries;
Angle : Integer;
begin
PSeries:= TPointSeries.Create(nil);
PSeries.Marks.Transparent := True;
PSeries.Marks.Style := smsLabel;
Angle := StrToInt(eAngle.Text);
PSeries.Marks.Angle := Angle;
PSeries.Marks.Visible := True;
PSeries.AddXY(StrToFloat(eX.Text),StrToFloat(eY.Text),eText.Text) ;
Chart1.AddSeries(PSeries);
end;

-Torben

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Mon Sep 20, 2004 9:41 am

Hi, Torben.

If you get it at design time then the feature is most likely there :) Perhaps the problem is Delphi is somehow still referencing old dcu files. Make sure Teechart v6.01 Delphi7\Lib\ folder is first in the library path list. Also, try switching to "Build with the runtime packages" option. If it works, then the problem is in old dcu files.

BTW, have you tried compiling/running TeeChart v6 demo program ? It includes the marks angle example and if the problem is in dcu files, then you won't be able to compile it as well.
Marjan Slatinek,
http://www.steema.com

tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

Post by tb » Mon Sep 20, 2004 9:43 am

AH ! Found the problem. We had an old TeeChart version's dcu file lying forgotten in a library :oops:

Old files deleted - problem is fixed.

:D

Thanks for your assistance !

-Torben

Post Reply