TChart.OnZoom handler

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
dmo9999
Newbie
Newbie
Posts: 2
Joined: Mon Nov 30, 2020 12:00 am

TChart.OnZoom handler

Post by dmo9999 » Tue Apr 05, 2022 2:55 pm

I created a TChart.OnZoom handler.
The handler can be invoked via a Rectangle Drag action OR a MouseWheel forward/back action.
I would like to handle these two cases differently.

Is there a way to determine what action invoked the OnZoom event within the handler?

Marc
Site Admin
Site Admin
Posts: 1274
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: TChart.OnZoom handler

Post by Marc » Thu Apr 07, 2022 9:34 pm

Hello,

You may be better advised to check the mouse move/up event to register how the action took place. You could set a variable that is then used when the OnZoom event triggers.

Regards,
Marc Meumann
Steema Support

Post Reply