Page 1 of 1
How to disable zooming by dlb click?
Posted: Sat Jan 06, 2007 6:03 am
There are two ways to zoom on a Tchart: (1) Click and drag a zoom box, and (2) double click and size the zoom box. I want to disable the 2nd method, but keep the 1st method intact. How do I do this?
Posted: Mon Jan 08, 2007 8:41 am
Zooming rectangle is displayed only if click + drag is used and if distance between start and end (mouse) position is greater than specified minimal zooming tolerance. It may also help adding tChart.CancelMouse := True; in onDoubleClick event implementation. Something like this:
Code: Select all
procedure TForm1.Chart1DblClick(Sender: TObject);
ShowMessage('DblClick event fired');
Chart1.CancelMouse := True;
If the problem persists please tell us the exact steps we should follow to reproduce the issue here.