Page 1 of 1

Marks Angle

Posted: Fri Sep 17, 2004 12:40 pm
by 8574417
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

Posted: Fri Sep 17, 2004 5:20 pm
by Pep
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.

more Marks

Posted: Mon Sep 20, 2004 8:52 am
by 8574417
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

Posted: Mon Sep 20, 2004 9:41 am
by Marjan
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.

Posted: Mon Sep 20, 2004 9:43 am
by 8574417
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