Page 1 of 1

TChart.OnZoom handler

Posted: Tue Apr 05, 2022 2:55 pm
by 16590113
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?

Re: TChart.OnZoom handler

Posted: Thu Apr 07, 2022 9:34 pm
by Marc
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