OnMouseDown Event

[Top]  [Chapter]  [Previous]  [Next]

Member of WPDLLInt

Declaration C#

MouseDown(MouseEventArgs e)

The .NET assembly uses the standard event type MouseDown. The passed MouseEventArgs can be casted to the wpMouseEventArgs type to read the property "Editor".

 

Declaration OCX

OnMouseDown(ByVal Editor As Long, ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)

 

This event occurs when the user presses the mouse button. The parameter Shift can be used to check the state of the control keys. The parameter Button will be 0 for left button, 1 for right and 2 for the middle button.

Parameters

Editor

The editor number, 1 or 2

Button

0 = left button, 1 = right, 2 = middle mouse button

Shift

A bit field representing the state of the control keys:

1 : Shift key

2 : ALT key

4 : Ctrl key

X

X position relatively to the editors upper left corner.

Editor

Y position relatively to the editors upper left corner.


[idh_wpdllint_onmousedown.htm]    Copyright © 2007 by WPCubed GmbH