SftButton/OCX 2.5

SftButton.OLEDragMode Property

Softel vdm, Inc.

Defines OLE drag support.

Syntax       

Get

VB.NET

Mode = object.OLEDragMode  As SftButtonOLEDragModeConstants

VB

Mode = object.OLEDragMode  As SftButtonOLEDragModeConstants

C#.NET

SftButtonOLEDragModeConstants Mode = object.OLEDragMode;

VC++

enum SftButtonOLEDragModeConstants Mode = object->OLEDragMode;
enum SftButtonOLEDragModeConstants Mode = object->GetOLEDragMode();

C

HRESULT object->get_OLEDragMode(enum SftButtonOLEDragModeConstants* Mode);

Delphi

Mode := object.OLEDragMode  : TOleEnum;

Put

VB.NET

object.OLEDragMode = Mode  As SftButtonOLEDragModeConstants

VB

object.OLEDragMode = Mode  As SftButtonOLEDragModeConstants

C#.NET

SftButtonOLEDragModeConstants object.OLEDragMode = Mode;

VC++

enum SftButtonOLEDragModeConstants object->OLEDragMode = Mode;
void object->PutOLEDragMode(enum SftButtonOLEDragModeConstants Mode);

C

HRESULT object->put_OLEDragMode(enum SftButtonOLEDragModeConstants Mode);

Delphi

object.OLEDragMode := Mode  : TOleEnum;

object

A SftButton object.

Mode

Defines whether the control is used as an OLE drag source.

Name

Value

Description

OLEDragSftButtonNone

0

The control cannot act as a drag source.

OLEDragSftButtonManual

1

The application calls the OLEDrag method to start an OLE drag & drop operation using this control as a drag source.

Comments

The OLEDragMode property defines OLE drag support.

Once an OLE drag & drop operation is started, the application receives the OLEStartDrag event, which is used to provide data to the DataObject.

If the OLEDragMode property is set to OLEDragSftButtonManual, the application can start an OLE drag & drop operation in response to any external event (such as the MouseDown event).

Visual Basic: The DragMode property which is automatically added to the control by Visual Basic also affects the handling of a drag & drop operation. For OLE drag & drop to be available, Visual Basic's DragMode property must be set to vbManual. Please see the Visual Basic documentation for information about the DragMode property and its drag & drop support.


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