SftMask/OCX 6.5

SftMask.DragStarting Event

Softel vdm, Inc.

The beginning of a drag & drop operation has been detected.

Syntax       

VB.NET

Private Sub object_DragStarting(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.DragStarting

VB

Private Sub object_DragStarting(ByVal Button As Integer, ByVal Shift As Integer, ByVal x As Single, ByVal y As Single)

C#.NET

void object_DragStarting(object sender, EventArgumentType e);

VC++

void OnDragStartingobject(short Button, short Shift, float x, float y);

C

HRESULT OnDragStartingobject(short Button, short Shift, float x, float y);

Delphi

procedure objectDragStarting(Sender: TObject; Button : Smallint; Shift : Smallint; x : Single; y : Single);

object

A SftMask object.

Button

Describes the button(s) that are pressed. The Button argument is a bit field with bits corresponding to the left button, right button and middle button. These bits correspond to the values shown below. The bits set indicate the button that caused the event.

Button

Value

Description

constSftMaskLeftButton

1

The left mouse button was pressed.

constSftMaskRightButton

2

The middle mouse button was pressed.

constSftMaskMiddleButton

4

The right mouse button was pressed.

Shift

Describes the state of the SHIFT, CONTROL and ALT keys. A bit is set if the key is down. The Shift argument is a bit field with bits corresponding to the SHIFT, CONTROL and ALT keys. It indicates the state of these keys. Some, all, or none of the bits can be set, indicating which of the keys are pressed.

Shift

Value

Description

constSftMaskShiftMask

1

The SHIFT key is down.

constSftMaskCtrlMask

2

The CONTROL key is down.

constSftMaskAltMask

4

The ALT key is down.

xPos

The x coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

yPos

The y coordinate of the mouse cursor. The units used depend on the container (Visual Basic, Visual C++, etc.) and the coordinate system used.

Comments

The DragStarting event occurs when the beginning of a drag & drop operation has been detected.

The DragStarting event only occurs when a drag & drop operation is detected. A drag & drop operation is initiated by pressing the left mouse button on the current selection.

The application can start an OLE drag & drop operation in response to other events by using the OLEDrag method.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com