Page 1 of 1

rotate/elevate

Posted: Fri Dec 10, 2004 4:48 pm
by 9340187
we have added the chart1.Tools.add(trotatetool.create(self))
to our project, but we cannot find anywhere the commands to
do either rotation or elevation Can you give uis a small code snippet
to point the way?

Thanks

Jennifer

Posted: Fri Dec 10, 2004 5:15 pm
by Pep
Hi Jennifer,

you can do :

Code: Select all

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Chart1.Tools.Add(TRotateTool.Create(self));
(Chart1.Tools.Items[0] as TRotateTool).Inverted := true;
(Chart1.Tools.Items[0] as TRotateTool).Pen.Visible := true;
end;

rotate/elevate

Posted: Fri Dec 10, 2004 7:00 pm
by 8437783
Hi-

I'm a little confused here-I had expectred there to be a rotate method and
an elevate method.something like:

[object]. rotate(angle) or [object.elevate[angle] This syntax may be incorrect,but we are for the methods to actually enter the bangle amgle
and perform the geometry operastion.

Thanks,

Jennifer

Posted: Mon Dec 13, 2004 7:28 am
by Marjan
Hi.

See my other reply about this topic(http://www.teechart.net/support/modules ... 40fecbc0b3). Basically all you have to do is set the TChart.Aspect Rotation and Elevation properties.

Posted: Mon Dec 13, 2004 7:28 am
by Pep
Hi Jennifer,

to set the Rotation and Elevation via code you must use :
Chart1.View3DOptions.Rotation := X;
Chart1.View3DOptions.Elevation := X;