|
|
|
SftDirectory.OLEDragMode Property |
Defines OLE drag support.
Syntax
VB.NET |
Mode = object.OLEDragMode As SftControlOLEDragModeConstants |
||
VB |
Mode = object.OLEDragMode As SftControlOLEDragModeConstants |
||
C#.NET |
SftControlOLEDragModeConstants Mode = object.OLEDragMode; |
||
VC++ |
enum SftControlOLEDragModeConstants Mode = object->OLEDragMode;
|
||
C |
HRESULT object->get_OLEDragMode(enum SftControlOLEDragModeConstants* Mode); |
||
Delphi |
Mode := object.OLEDragMode : TOleEnum; |
||
VB.NET |
object.OLEDragMode = Mode As SftControlOLEDragModeConstants |
||
VB |
object.OLEDragMode = Mode As SftControlOLEDragModeConstants |
||
C#.NET |
SftControlOLEDragModeConstants object.OLEDragMode = Mode; |
||
VC++ |
enum SftControlOLEDragModeConstants object->OLEDragMode = Mode;
|
||
C |
HRESULT object->put_OLEDragMode(enum SftControlOLEDragModeConstants Mode); |
||
Delphi |
object.OLEDragMode := Mode : TOleEnum; |
object
A SftDirectory object.
Mode
Defines OLE drag support.
Comments
The OLEDragMode property defines OLE drag support.
OLE Drag & Drop is not supported with combo box style controls (see ControlStyle property).
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 DragStarting event or any other suitable event.
If the OLEDragMode property is set to OLEDragSftControlAutomatic, the control automatically initiates a drag & drop operation using the Windows Shell mechanisms.
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.