How to disable zooming by dlb click?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Posts: 17
Joined: Tue Mar 01, 2005 5:00 am
Location: Saint Paul, MN

How to disable zooming by dlb click?

Post by AeroSys » 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?


Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia

Post by Narcís » Mon Jan 08, 2007 8:41 am

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:

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply