SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines OLE drag support.
Get
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; enum SftControlOLEDragModeConstants Mode = object->GetOLEDragMode(); |
C | HRESULT object->get_OLEDragMode(enum SftControlOLEDragModeConstants* Mode); |
Put
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; void object->PutOLEDragMode(enum SftControlOLEDragModeConstants Mode); |
C | HRESULT object->put_OLEDragMode(enum SftControlOLEDragModeConstants Mode); |
object
Mode
Defines whether the control is used as an OLE drag & drop drag source.
Mode | Value | Description |
---|---|---|
OLEDragSftControlNone | 0 | The control cannot act as a drag source. |
OLEDragSftControlManual | 1 | The application calls the OLEDrag method to start an OLE drag & drop operation using this control as a drag source. |
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