Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

DragType Property, SftTree Object

Defines the method that determines when a drag & drop operation starts.

Syntax

Get

VB.NETType = object.DragType As SftTreeDragTypeConstants
VBType = object.DragType As SftTreeDragTypeConstants
C#.NETSftTreeDragTypeConstants Type = object.DragType;
VC++enum SftTreeDragTypeConstants Type = object->DragType;
enum SftTreeDragTypeConstants Type = object->GetDragType();
CHRESULT object->get_DragType(enum SftTreeDragTypeConstants* Type);

Put

VB.NETobject.DragType = Type As SftTreeDragTypeConstants
VBobject.DragType = Type As SftTreeDragTypeConstants
C#.NETSftTreeDragTypeConstants object.DragType = Type;
VC++enum SftTreeDragTypeConstants object->DragType = Type;
void object->PutDragType(enum SftTreeDragTypeConstants Type);
CHRESULT object->put_DragType(enum SftTreeDragTypeConstants Type);

object

A SftTree object.

Type

Defines the method that determines when a drag & drop operation starts. When a drag & drop operation starts, the OLEStartDrag, DragStarting or AutoDragging events are generated, based on the DragMethod property settings.

TypeValueDescription
dragSftTreeNext0The drag & drop operation can start from a cell and is initiated once the mouse cursor leaves the current item. Before an item can be dragged, it has to be selected using the keyboard or the mouse button and the mouse button has to be released, then a drag & drop operation can be started by pressing the mouse button again.
dragSftTreeBmpNext1The drag & drop operation can start from a label graphic, an item graphic or a cell and is initiated once the mouse cursor leaves the current item. Before an item can be dragged, it has to be selected using the keyboard or the mouse button and the mouse button has to be released, then a drag & drop operation can be started by pressing the mouse button again.
dragSftTreePix2The drag & drop operation can start from a cell and is initiated once the mouse cursor is moved by a certain pixel distance. Before an item can be dragged, it has to be selected using the keyboard or the mouse button and the mouse button has to be released, then a drag & drop operation can be started by pressing the mouse button again.
dragSftTreeBmpPix3The drag & drop operation can start from a label graphic, an item graphic or a cell and is initiated once the mouse cursor is moved by a certain pixel distance. Before an item can be dragged, it has to be selected using the keyboard or the mouse button and the mouse button has to be released, then a drag & drop operation can be started by pressing the mouse button again.
dragSftTreeNextImm4The drag & drop operation can start from a cell and is initiated once the mouse cursor leaves the current item. An item can be dragged as it is selected in a single or multiple selection tree control (see Items.MultiSelect property).
dragSftTreeBmpNextImm5The drag & drop operation can start from a label graphic, an item graphic or a cell and is initiated once the mouse cursor leaves the current item. An item can be dragged as it is selected in a single or multiple selection tree control (see Items.MultiSelect property).
dragSftTreePixImm6The drag & drop operation can start from a cell and is initiated once the mouse cursor is moved by a certain pixel distance. An item can be dragged as it is selected in a single or multiple selection tree control (see Items.MultiSelect property).
dragSftTreeBmpPixImm7The drag & drop operation can start from a label graphic, an item graphic or a cell and is initiated once the mouse cursor is moved by a certain pixel distance. An item can be dragged as it is selected in a single or multiple selection tree control (see Items.MultiSelect property).

Comments

The DragType property defines the method that determines when a drag & drop operation starts.

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 unless OLE drag & drop is used.

Depending on the Type selected, dragging can start on the cell only or also on the label graphic and the item graphic.

With some Type values, a drag & drop operation starts once the user moves the mouse cursor by a certain pixel distance. The pixel distance used is retrieved by using the Windows API GetSystemMetrics(SM_CX/Y/DRAG).

See Also SftTree Object | Object Hierarchy


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