ZOOM

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
altran
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2006 12:00 am
Contact:

ZOOM

Post by altran » Fri Sep 28, 2007 12:18 pm

Hi,

When I start the Chart Editor screen and I close it, The zoom is automatically actived, could you help me to solve this problem ?

Thank you.

Wil.

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

Post by Narcís » Fri Sep 28, 2007 1:24 pm

Hi Wil,

Which exact TeeChart version are you using? Could you please send us a simple example project we can run "as-is" or let us know the steps we should follow to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments or at our upload page.

Thanks in advance!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

altran
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2006 12:00 am
Contact:

Post by altran » Fri Sep 28, 2007 1:31 pm

Hi,

I use the 7.08 for Delphi 2006. I have create a procedure on the double click event of my teexhart with this code :

procedure TfrmMainAnalyseHydro.chartAnalyseHydroLEELEPDblClick(Sender: TObject);
begin
editChart(self, TCustomChart(sender));
end;

When I double clik on the teechart, the editor appear but when I close it, the zoom function with the dots appear on the teechart. At this moment, I must zoom two times on the teechart to come back on a normal state.

I have started a demo and I don't reproduce the problem.

I hope it's clear for you ;)

Thanks a lot.

Wil

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Oct 01, 2007 12:03 pm

Hi Wil,

to solve it you can do :

Code: Select all

procedure TForm1.Chart1DblClick(Sender: TObject);
begin
 editChart(self, TCustomChart(sender));
 Abort;
end;

altran
Newbie
Newbie
Posts: 3
Joined: Mon Nov 06, 2006 12:00 am
Contact:

Post by altran » Mon Oct 01, 2007 12:35 pm

Hi,

Thanks a lot for the help ;).

Wil

xxxxxx
Advanced
Posts: 128
Joined: Tue Jun 19, 2007 12:00 am
Location: Russia
Contact:

Post by xxxxxx » Mon Oct 01, 2007 3:58 pm

Hi, Pep!
So far in such cases I used something like that

Code: Select all

TCustomChart(sender)).CancelMouse 
Do you reccomend use Abort procedure instead that actually invokes sort of exception?
Regards, Alexander
=================
TeeChart Pro v8.05, Delphi 5 & Turbo Delphi Professional for Win32., Delphi & C++Builder 2009

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Oct 08, 2007 9:33 am

Hi Alexander,

CancelMouse can be used too, it should work in similar way, it stops or not the events calls in mouse click events.
Abort wont allow you to choose if they must be fired or not, just abort them.

Post Reply