rotate/elevate

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Jennifer
Newbie
Newbie
Posts: 20
Joined: Tue Dec 07, 2004 5:00 am

rotate/elevate

Post by Jennifer » Fri Dec 10, 2004 4:48 pm

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

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

Post by Pep » Fri Dec 10, 2004 5:15 pm

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;

Jennifer Good
Newbie
Newbie
Posts: 9
Joined: Fri Nov 15, 2002 12:00 am
Location: Dallas Tx

rotate/elevate

Post by Jennifer Good » Fri Dec 10, 2004 7:00 pm

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

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

Post by Marjan » Mon Dec 13, 2004 7:28 am

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.
Marjan Slatinek,
http://www.steema.com

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

Post by Pep » Mon Dec 13, 2004 7:28 am

Hi Jennifer,

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

Post Reply