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.
Resetting TRotateTool effects
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rackerson,
You can easily do that with some code like this:
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 |
Instructions - How to post in this forum |