I'm using Delphi 5, and TeeChart Pro 7.06. I have two charts defined. I'm using TFastLine series to display RSSI and CINR information gathered from my company's wireless equipment.
I have a quick procedure that I run which initializes the zooming functionality of my charts:
Code: Select all
procedure TFChart.initialize;
begin
RSSIChart.Zoom.Allow := true;
SINADRChart.Zoom.Allow := true;
RSSIChart.Zoom.MouseButton := mbMiddle;
SINADRChart.Zoom.MouseButton := mbMiddle;
RSSIChart.Axes.FastCalc := true;
SINADRChart.Axes.FastCalc := true;
end;
I guess my question is: what other parameters can affect the operation of zoom? Are there any events aside from chart.clickseries which prevent zoom functionality? I am currently using the following events on BOTH charts:
OnAfterDraw
OnAllowScroll
OnClickBackground
OnClickSeries
OnDblClick
OnMouseDown
OnMouseMove
OnMouseUp
There was a bug I encountered a while ago where dragging a chart to the left would cause the chart to move at a rate greater than that of the mouse (still present in your Tee7New.exe example file!), so my OnAllowScroll event always returns false, and I handle scrolling myself using if Button = mbRight then SetCaptureControl(TControl(Sender)); in the OnMouseDown event, and if mouseCaptured then chart.bottomaxis.scroll(value); in the OnMouseMove event. Could this be causing the problem?
Any help would be greatly appreciated.
Andrew