But first the properties. To find out if there actually is a mouse present on
the system, use the property MousePresent.
You can use the property Capture to find out which window is currently
capturing the mouse events. This property returns a handle, that you can use to
find out further information about the window. The property is defined like
this: Property Capture: HWND;
The property CursorPos returns a TPoint and contains the position of the
mouse cursor. You can use Mouse.CursorPos.X and Mouse.CursorPos.Y to find out
the exact position of the mouse cursor.
DragImmediate specifies if clicking the mouse button starts a drag event
immediately, or of drag events are delayed until the mouse has moved the number
of pixels specified in the DragTreshold property.
Use DragThreshold to specify the number of pixels that the mouse cursor must
be moved with the left mouse button down in order to cause a drag event.
The property WheelPresent returns a boolean and specifies whether the mouse
has a wheel.
Use the property WheelScrollLines, which returns an integer, to see how many
lines are scrolled if someone turns the mouse wheel.
|