|
Mouse gesture components
|
TComponent
TJvMouseGestureTJvMouseGesture = class(TComponent)
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
| 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 |
![]() | published |
| 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 |
| 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 |
| 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 |
![]() | published |
![]() | read only |
![]() | virtual |