Page 1 of 1

Resetting TRotateTool effects

Posted: Mon Oct 02, 2006 7:24 pm
by 9336044
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.

Posted: Tue Oct 03, 2006 8:04 am
by narcis
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;