procedure TForm1.Panel1Gesture(Sender: TObject;
const EventInfo: TGestureEventInfo; var Handled: Boolean);
var
fs,s : string ;
begin
fs := '' ;
if (TInteractiveGestureFlag.gfBegin in EventInfo.Flags) then
fs := fs + '[BEGIN]' ;
if (TInteractiveGestureFlag.gfInertia in EventInfo.Flags) then
fs := fs + '[INERTIA]' ;
if (TInteractiveGestureFlag.gfEnd in EventInfo.Flags) then
fs := fs + '[END]';
if not(GestureToIdent(EventInfo.GestureID, s)) then s := '---';