|
|
|
SftMask.OLEDragMode Property |
Defines OLE drag support.
Syntax
VB.NET |
Mode = object.OLEDragMode As SftMaskOLEDragModeConstants |
||
VB |
Mode = object.OLEDragMode As SftMaskOLEDragModeConstants |
||
C#.NET |
SftMaskOLEDragModeConstants Mode = object.OLEDragMode; |
||
VC++ |
enum SftMaskOLEDragModeConstants Mode = object->OLEDragMode;
|
||
C |
HRESULT object->get_OLEDragMode(enum SftMaskOLEDragModeConstants* Mode); |
||
Delphi |
Mode := object.OLEDragMode : TOleEnum; |
||
VB.NET |
object.OLEDragMode = Mode As SftMaskOLEDragModeConstants |
||
VB |
object.OLEDragMode = Mode As SftMaskOLEDragModeConstants |
||
C#.NET |
SftMaskOLEDragModeConstants object.OLEDragMode = Mode; |
||
VC++ |
enum SftMaskOLEDragModeConstants object->OLEDragMode = Mode;
|
||
C |
HRESULT object->put_OLEDragMode(enum SftMaskOLEDragModeConstants Mode); |
||
Delphi |
object.OLEDragMode := Mode : TOleEnum; |
object
A SftMask object.
Mode
Defines whether the control is used as an OLE drag & drop drag source.
Mode |
Value |
Description |
0 |
The control cannot act as a drag source. |
|
1 |
The application calls the OLEDrag method to start an OLE drag & drop operation using this control as a drag source. |
|
2 |
The control automatically starts an OLE drag & drop operation when a dragging operation is detected and provides default data to the DataObject. |
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 OLEDragSftMaskManual, 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 OLEDragSftMaskAutomatic, the control automatically adds the text of the currently selected text including literals to the DataObject. The application can modify this behavior using the OLEStartDrag 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.