Rotating tool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
rojo
Newbie
Newbie
Posts: 12
Joined: Fri Aug 03, 2007 12:00 am

Rotating tool

Post by rojo » Thu Dec 06, 2007 9:22 pm

Hello,

I have a problem with the rotating tool. i have a trackbar withe 0 to 360 deg.
But wenn i use the mouse and change the surfacechart it only can change the elevation between 270 and 360 degrees.
I want i to move the elevation between -90 and 90 deg. can you help me

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

Post by Narcís » Fri Dec 07, 2007 10:08 am

Hi rojo,

You can do this programatically:

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
  Chart1.Aspect.Orthogonal:=false;
  Chart1.Aspect.Elevation:=0;

  TrackBar1.Min:=-90;
  TrackBar1.Max:=90;
end;

procedure TForm1.TrackBar1Change(Sender: TObject);
begin
  Chart1.Aspect.Elevation:=TrackBar1.Position;
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

rojo
Newbie
Newbie
Posts: 12
Joined: Fri Aug 03, 2007 12:00 am

Post by rojo » Fri Dec 07, 2007 11:55 am

Hi,

i made this already. With the trackbar you can elevate the graph.
But i also want to elevate the graph with the mouse. Therefor i use the rotating tool. But wenn i set chart1.Aspect.Elevation:= 0; and i want to elevate with the mouse in the graph. The graph jumps to 270 deg. I think becaus the rotating tool only can elevate between 270 and 360 deg.

I hope you have a solution.

Rojo

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

Post by Narcís » Fri Dec 07, 2007 12:05 pm

Hi Rojo,

I'm afraid so. In that case, the only solution I can think of is being a sourcecode customer and modifying tool's sources to fit your needs. I'll also add your request to our wish-list to be considered for inclusion in future releases.
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