Page 1 of 1

TeeChart 8 + Multitouch Gesture

Posted: Tue Sep 07, 2010 9:31 am
by 10546730
Hi,

I'm trying to use Gesture with Teechart 8.

Why the OnGesture event is not published.
When I create a component derived from TeeChart and published this event, it never raises.

So, I use the OnGesture event of the form.
I'm trying to zoom out/in with a pinch out/in gesture but ZoomPercent method always zoom out (even if PercentZoom is greater than 100%)

So, have you some code to implement a right zoom in/out with this gesture ?

Best Regards,
Laurent.

Re: TeeChart 8 + Multitouch Gesture

Posted: Wed Sep 08, 2010 7:12 am
by 10546730
I understand the problem with the PercentZoom: If it's greater than 200, it makes a zoom out !
So, if it's equal to 150, it makes a huge zoom in !

Here is the code that makes pinch in/out usable :

procedure TForm1.FormGesture(Sender: TObject; const EventInfo: TGestureEventInfo; var Handled: Boolean);
begin
case EventInfo.GestureID of
igiZoom: begin
if gfBegin in EventInfo.Flags then
FDistance := EventInfo.Distance
else if (EventInfo.Distance > FDistance) then
Chart1.ZoomPercent(100.5)
else
Chart1.ZoomPercent(99.5)
end;
end;
end;

Do you plan a better multitouch gesture support in a next release ?

Best Regards,
Laurent.

Re: TeeChart 8 + Multitouch Gesture

Posted: Wed Sep 08, 2010 2:34 pm
by yeray
Hi Laurent,

I've added it to the wish list to be implemented in future releases (TV52015142)