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.
TeeChart 8 + Multitouch Gesture
Re: TeeChart 8 + Multitouch Gesture
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.
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
Hi Laurent,
I've added it to the wish list to be implemented in future releases (TV52015142)
I've added it to the wish list to be implemented in future releases (TV52015142)
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |