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?
Matt
How to disable zooming by dlb click?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Matt,
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:
If the problem persists please tell us the exact steps we should follow to reproduce the issue here.
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);
begin
ShowMessage('DblClick event fired');
Chart1.CancelMouse := True;
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 |