|
Mouse gesture components
|
Programmers will get a string with the detected gesture from following matrix:
| 7 | U | 9 |
| L | * | R |
| 1 | D | 3 |
The asterix is the startpoint for the first vector. E.g. a gesture string "LU" means, user has first moved mouse to the left side and then up. There's no limit for complexity of a gesture ...
| Class | Description |
| TJvMouseGesture |
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
|
| TJvMouseGestureHook | This class implements a application wide mouse hook for mouse gestures. Programmers get only one event for a detected mouse gesture: |
| Constant | Description |
| JVMG_DOWN | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_LEFT | |
| JVMG_LEFTLOWER | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_LEFTUPPER | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_RIGHT | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_RIGHTLOWER | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_RIGHTUPPER | The text for this constant has been generated automatically. This means that it is not documented. |
| JVMG_UP | The text for this constant has been generated automatically. This means that it is not documented. |
| Enumeration | Description |
| TJvActivationMode | Defines, whether or not the hook will be activated automatically or not. |
| TJvMouseGestureButton | This type defines a set of available buttons for the hook. |
| Function | Description |
| JvMouseGestureHook | Hook call back function. DO NOT USE EXTERN! |
| Type | Description |
| TOnJvMouseGestureCustomInterpretation | Defines a complex gesture (two or more letters event) |
| TOnJvMouseGestureSimple | Defines a simple gesture (one letter event |
| Variable | Description |
| JvCurrentHook | contains the handle of the currently installed hook |
| JvMouseButtonDown | Some global vars to be accessed by call back function ... |
| JvMouseButtonUp | Some global vars to be accessed by call back function ... |
| JvMouseGestureHookActive | Some global vars to be accessed by call back function ... |
| JvMouseGestureHookAlreadyInstalled | Some global vars to be accessed by call back function ... |
| JvMouseGestureInterpreter | Object pointer to interpreter class used by hook |