Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

DragMethod Property, SftTree Object

Defines how drag & drop is implemented.

Syntax

Get

VB.NETStyle = object.DragMethod As SftTreeDragMethodConstants
VBStyle = object.DragMethod As SftTreeDragMethodConstants
C#.NETSftTreeDragMethodConstants Style = object.DragMethod;
VC++enum SftTreeDragMethodConstants Style = object->DragMethod;
enum SftTreeDragMethodConstants Style = object->GetDragMethod();
CHRESULT object->get_DragMethod(enum SftTreeDragMethodConstants* Style);

Put

VB.NETobject.DragMethod = Style As SftTreeDragMethodConstants
VBobject.DragMethod = Style As SftTreeDragMethodConstants
C#.NETSftTreeDragMethodConstants object.DragMethod = Style;
VC++enum SftTreeDragMethodConstants object->DragMethod = Style;
void object->PutDragMethod(enum SftTreeDragMethodConstants Style);
CHRESULT object->put_DragMethod(enum SftTreeDragMethodConstants Style);

object

A SftTree object.

Style

Defines how drag & drop is implemented. When a drag & drop operation starts, the OLEStartDrag, DragStarting or AutoDragging events are generated, based on the DragMethod property settings.

StyleValueDescription
dragSftTreeNone0Drag & drop is not supported.
dragSftTreeManual1Drag & drop is supported. A DragStarting event is generated. The application is responsible for drag & drop within and outside the tree control.
dragSftTreeAuto2Drag & drop is supported within the tree control. Drag & drop outside the tree control is not possible. The AutoDragging event is generated if a drag & drop operation starts.
dragSftTreeOLE3An OLE drag & drop operation is started automatically based on the DragType property settings.

Comments

The DragMethod property defines how drag & drop is implemented.

The DragType property determines when the OLEStartDrag, DragStarting or AutoDragging event is generated to notify the application that a drag & drop operation has been initiated by the user.

A drag & drop operation always starts at the current location described by the Items.Current property. It is the application's responsibility to visually implement the drag & drop operation.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.