SftDirectory 2.5

SftDirectory.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 xPos As OLE_XPOS_PIXELS, ByVal yPos As OLE_YPOS_PIXELS)

C#.NET

void object_DragStarting(object sender, EventArgumentType e);

VC++

void OnDragStartingobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);

C

HRESULT OnDragStartingobject(short Button, short Shift, OLE_XPOS_PIXELS xPos, OLE_YPOS_PIXELS yPos);

Delphi

procedure objectDragStarting(Sender: TObject; Button : Smallint; Shift : Smallint; xPos : Integer; yPos : Integer);

object

A SftDirectory 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

constSftControlLeftButton

1

The left mouse button was pressed.

constSftControlRightButton

2

The middle mouse button was pressed.

constSftControlMiddleButton

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

constSftControlShiftMask

1

The SHIFT key is down.

constSftControlCtrlMask

2

The CONTROL key is down.

constSftControlAltMask

4

The ALT key is down.

xPos

The x coordinate in pixels where the mouse cursor is located.

yPos

The y coordinate in pixels where the mouse cursor is located.

Comments

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

The DragStarting event only occurs when the OLEDragMode property is set to OLEDragSftControlManual.  An application can implement its own drag & drop processing or use the OLEDrag method in response to this event.

The CurrentFolder property can be used to determine where the drag & drop item starts.  It typically includes all selected folders, which can be retrieved using the Selection property and the SelectionCount property.


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