Mouse gesture components
TJvMouseGesture
Events | JvMouseGesture | Members | Methods | Properties | Class Hierarchy | See Also
Class Hierarchy
TComponent
    TJvMouseGesture
TJvMouseGesture = class(TComponent)
File
Description
This class implements the basic interpreter. It can be used to enhance single components, too. E.g., if you want to enable a grid with gesture feature. For this purpose you have to do 4 steps:

1) Fill the "OnMouseDown" event with code like

  if Button = mbRight then
    JvMouseGesture1.StartMouseGesture(x,y);

2) Fill the OnMouseMove event with something like

  if JvMouseGesture1.TrailActive then
    JvMouseGesture1.TrailMouseGesture(x,y);

3) Now fill the OnMouseUp event

  if JvMouseGesture1.TrailActive then begin
    JvMouseGesture1.EndMouseGesture;

4) Last but not least fill components

OnJvMouseGestureCustomInterpretation

XOR

OnJvMouseGesture<xyz>

event

Notes
If CustomInterpreation is filled the other events are not fired!
See Also
Events
Event Description
OnJvMouseGestureCustomInterpretation Event for own evaluation of detected gesture. If this event is used all others will be ignored!
OnJvMouseGestureDown Event for a simple MOUSE DOWN gesture
OnJvMouseGestureLeft Event for a simple MOUSE LEFT gesture
OnJvMouseGestureLeftLowerEdge Event for a simple diagonally MOUSE LEFT LOWER EDGE (point 1 in grid) gesture
OnJvMouseGestureLeftUpperEdge Event for a simple diagonally MOUSE LEFT UPPER EDGE (point 7 in grid) gesture
OnJvMouseGestureRight Event for a simple MOUSE RIGHT gesture
OnJvMouseGestureRightLowerEdge Event for a simple diagonally MOUSE RIGHT LOWER EDGE (point 3 in grid) gesture
OnJvMouseGestureRightUpperEdge Event for a simple diagonally MOUSE RIGHT UPPER EDGE (point 9 in grid) gesture
OnJvMouseGestureUp Event for a simple MOUSE UP gesture
Legend
published
Members
Properties
Property Description
Active TRUE if component is active, otherwise FALSE
Delay The maximum delay before cancelling a gesture Normally never been changed
Gesture The gesture string. For string content see description of unit.
Grid Grid size for detection Normally never been changed
TrailActive TRUE, if in detection, otherwise FALSE
TrailInterval Trail interval Normally never been changed
TrailLength The actual length of trail (not of gesture string!!!)
TrailLimit The maximum length of trail (not of gesture string!!!) Normally never been changed
Events
Event Description
OnJvMouseGestureCustomInterpretation Event for own evaluation of detected gesture. If this event is used all others will be ignored!
OnJvMouseGestureDown Event for a simple MOUSE DOWN gesture
OnJvMouseGestureLeft Event for a simple MOUSE LEFT gesture
OnJvMouseGestureLeftLowerEdge Event for a simple diagonally MOUSE LEFT LOWER EDGE (point 1 in grid) gesture
OnJvMouseGestureLeftUpperEdge Event for a simple diagonally MOUSE LEFT UPPER EDGE (point 7 in grid) gesture
OnJvMouseGestureRight Event for a simple MOUSE RIGHT gesture
OnJvMouseGestureRightLowerEdge Event for a simple diagonally MOUSE RIGHT LOWER EDGE (point 3 in grid) gesture
OnJvMouseGestureRightUpperEdge Event for a simple diagonally MOUSE RIGHT UPPER EDGE (point 9 in grid) gesture
OnJvMouseGestureUp Event for a simple MOUSE UP gesture
Methods
Method Description
Create Standard constructor

TJvMouseGesture

Destroy Standard destructor
EndMouseGesture Ends the mouse gesture interpretation and fires an event if a gesture was found
StartMouseGesture Starts the mouse gesture interpretation
TrailMouseGesture Continues the mouse gesture interpretation during mouse move
Legend
published
read only
virtual
Links
Copyright (c) 2003 by Project JEDI. All rights reserved.