TeeChart 8 + Multitouch Gesture

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
lolo31
Newbie
Newbie
Posts: 2
Joined: Wed Sep 19, 2007 12:00 am

TeeChart 8 + Multitouch Gesture

Post by lolo31 » Tue Sep 07, 2010 9:31 am

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.

lolo31
Newbie
Newbie
Posts: 2
Joined: Wed Sep 19, 2007 12:00 am

Re: TeeChart 8 + Multitouch Gesture

Post by lolo31 » Wed Sep 08, 2010 7:12 am

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.

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TeeChart 8 + Multitouch Gesture

Post by Yeray » Wed Sep 08, 2010 2:34 pm

Hi Laurent,

I've added it to the wish list to be implemented in future releases (TV52015142)
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply