Resetting TRotateTool effects

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rackerson
Newbie
Newbie
Posts: 22
Joined: Mon Mar 08, 2004 5:00 am
Location: Edison, New Jersey USA

Resetting TRotateTool effects

Post by rackerson » Mon Oct 02, 2006 7:24 pm

Delphi 6 Enterprise, TeeChart Pro 7.07

I have a simple chart that I am allowing the users to use the TRotateTool to rotate/elevate. Now that I have given my users the ability to spin and tilt the appearance of their pie chart any way they want, I have been asked to provide a simple way for them to reset the chart, that is - automatically display the chart as it was initially drawn.

I cannot find a way to do this.

Thank you.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Oct 03, 2006 8:04 am

Hi rackerson,

You can easily do that with some code like this:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  With Chart1.Aspect do
  begin
    Rotation:=360;
    Elevation:=315;
    HorizOffset:=0;
    VertOffset:=0;
  end;
end;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply