Dear Steema,
We encounter a defect with TChartPro 7.07 for Delphi:
[Defect 5741] When user moves chart with the pan function (horizontal, vertical or full panning), the chart is a little bit zoomed. So, we cannot retrieve the original zoom factor when we moves chart to its original position and we have to perform a reset.
I post an example where you can experiment this defect to forum steema.public.teechart7.delphi
How can we perform a pan without this zoom effect?
Best Regards
Gerald
Chart is zoomed when user moves chart with pan
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Dear Gerald,
Thanks for the example project. We have been able to reproduce the issue here.
This is because when scrolling the chart it automatically changes axes minimum and maximum values.
To solve this you can add implement the OnScroll event doing something like this:
and then the reset chart button like this:
Thanks for the example project. We have been able to reproduce the issue here.
This is because when scrolling the chart it automatically changes axes minimum and maximum values.
To solve this you can add implement the OnScroll event doing something like this:
Code: Select all
procedure TForm1.Chart1Scroll(Sender: TObject);
begin
Chart1.Axes.Bottom.MinimumOffset:=90;
Chart1.Axes.Bottom.MaximumOffset:=90;
Chart1.Axes.Left.MaximumOffset:=35;
end;
Code: Select all
procedure TForm1.Button1Click(Sender: TObject);
begin
Chart1.Axes.Bottom.MinimumOffset:=0;
Chart1.Axes.Bottom.MaximumOffset:=0;
Chart1.Axes.Left.MaximumOffset:=0;
Chart1.UndoZoom;
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 |