|
IDL Reference Guide: iTools Object Classes |
|
The IDLitWindow::OnMouseMotion procedure method handles notification (from the native window device) that a mouse motion event has occurred, and passes along that notification to all observers in the list of window event observers (as specified by calls to the IDLitWindow::AddWindowEventObserver method). You can also simulate a mouse motion event by calling this method directly.
| Note Window event observers that handle mouse motion events must implement the OnMouseMotion method, as described in Implementing the OnMouseMotion Interface. In addition, window event observers must implement the OnKeyboard, OnMouseDown, and OnMouseUp methods. See IDLitWindow::AddWindowEventObserver for details. |
Obj->[IDLitWindow::]OnMouseMotion, X, Y, Modifiers
A long integer representing the x-location (in device coordinates) of the mouse event.
A long integer representing the y-location (in device coordinates) of the mouse event.
A long integer containing a bitwise mask indicating which modifier keys are active at the time the mouse button is pressed. If a bit is zero, the key is up; if the bit is set, the key is pressed. The following table describes the bits in this bitmask:
|
Bit
|
Value
|
Modifier Key
|
|---|---|---|
|
0
|
1
|
Shift
|
|
1
|
2
|
Control
|
|
2
|
4
|
Caps Lock
|
|
3
|
8
|
Alt
|
None
When defining a window event observer that handles mouse motion events, you must implement an OnMouseMotion procedure method with the following signature:
PRO OnMouseMotion, Window, X, Y, Modifiers
where the Window argument is an object reference to the IDLitWindow object in which the event was generated, and all of the other arguments are described above.
In addition, you must implement OnKeyboard, OnMouseDown, and OnMouseUp procedure methods, as discussed in IDLitWindow::AddWindowEventObserver.
IDLitWindow::AddWindowEventObserver, IDLitWindow::OnKeyboard, IDLitWindow::OnMouseDown, IDLitWindow::OnMouseUp
IDL Online Help (March 06, 2007)