Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.OLEDragMode Property

Defines OLE drag support.

Syntax

Get

VB.NETMode = object.OLEDragMode As SftControlOLEDragModeConstants
VBMode = object.OLEDragMode As SftControlOLEDragModeConstants
C#.NETSftControlOLEDragModeConstants Mode = object.OLEDragMode;
VC++enum SftControlOLEDragModeConstants Mode = object->OLEDragMode;
enum SftControlOLEDragModeConstants Mode = object->GetOLEDragMode();
CHRESULT object->get_OLEDragMode(enum SftControlOLEDragModeConstants* Mode);

Put

VB.NETobject.OLEDragMode = Mode As SftControlOLEDragModeConstants
VBobject.OLEDragMode = Mode As SftControlOLEDragModeConstants
C#.NETSftControlOLEDragModeConstants object.OLEDragMode = Mode;
VC++enum SftControlOLEDragModeConstants object->OLEDragMode = Mode;
void object->PutOLEDragMode(enum SftControlOLEDragModeConstants Mode);
CHRESULT object->put_OLEDragMode(enum SftControlOLEDragModeConstants Mode);

object

A SftPrintPreview object.

Mode

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

ModeValueDescription
OLEDragSftControlNone0The control cannot act as a drag source.
OLEDragSftControlManual1The 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 OLEDragSftControlManual, the application can start an OLE drag & drop operation in response to the MouseDown event or any other suitable event.

Visual Basic 6: 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.

See Also SftPrintPreview Object | Object Hierarchy


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