Page 1 of 1

ZOOM

Posted: Fri Sep 28, 2007 12:18 pm
by 9347989
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.

Posted: Fri Sep 28, 2007 1:24 pm
by narcis
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!

Posted: Fri Sep 28, 2007 1:31 pm
by 9347989
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

Posted: Mon Oct 01, 2007 12:03 pm
by Pep
Hi Wil,

to solve it you can do :

Code: Select all

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

Posted: Mon Oct 01, 2007 12:35 pm
by 9347989
Hi,

Thanks a lot for the help ;).

Wil

Posted: Mon Oct 01, 2007 3:58 pm
by 9047589
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?

Posted: Mon Oct 08, 2007 9:33 am
by Pep
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.