Page 1 of 1

TeeCommander - Would like to have 3-D off during Zoom

Posted: Thu Dec 04, 2008 9:58 pm
by 10549276
I am using TeeChart Pro VCL with BDS 2006. I have a line Chart (2-D) with a TeeCommander Toolbar added on the form.

I have disabled & hide the 3D speedbutton including setting of View3D := False.

However, when I click on Zoom Speedbutton it automatically shows the chart in 3D. I would like disable this 3D mode.

Posted: Fri Dec 05, 2008 8:32 am
by narcis
Hi Faheem,

I'm afraid this is not possible using TTeeCommander's zooming feature. The only possibility to zoom in 2D is using TeeChart default zooming features as described in Tutorial 11 - Zoom and Scroll. Tutorials can be found at TeeChart's program group.

Alternativelly you can use ZoomPercent in 2D charts too, for example:

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.ZoomPercent(110);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  Chart1.ZoomPercent(90);
end;