Advertisement
4_2005-2006 VB function enhancement #154652

About TMouse

The global object Mouse, which is of type TMouse, contains information about the mouse. The object Mouse has several properties and one method I'll discuss here. For more properties and methods look in the Delphi help file, I will only discuss one method that is only present in TMouse, and not the methods that are derived from TObject.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
<p>But first the properties. To find out if there actually is a mouse present on
the system, use the property MousePresent.
<p>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;
<p>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.
<p>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.
<p>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.
<p>The property WheelPresent returns a boolean and specifies whether the mouse
has a wheel.
<p>Use the property WheelScrollLines, which returns an integer, to see how many
lines are scrolled if someone turns the mouse wheel.</p>
원본 댓글 (3)
Wayback Machine에서 복구됨