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 whether the control can act as an OLE drag source.
Get
VB.NET | Mode = object.OLEDragMode As SftBoxOLEDragModeConstants |
VB | Mode = object.OLEDragMode As SftBoxOLEDragModeConstants |
C#.NET | SftBoxOLEDragModeConstants Mode = object.OLEDragMode; |
VC++ | enum SftBoxOLEDragModeConstants Mode = object->OLEDragMode; enum SftBoxOLEDragModeConstants Mode = object->GetOLEDragMode(); |
C | HRESULT object->get_OLEDragMode(enum SftBoxOLEDragModeConstants* Mode); |
Put
VB.NET | object.OLEDragMode = Mode As SftBoxOLEDragModeConstants |
VB | object.OLEDragMode = Mode As SftBoxOLEDragModeConstants |
C#.NET | SftBoxOLEDragModeConstants object.OLEDragMode = Mode; |
VC++ | enum SftBoxOLEDragModeConstants object->OLEDragMode = Mode; void object->PutOLEDragMode(enum SftBoxOLEDragModeConstants Mode); |
C | HRESULT object->put_OLEDragMode(enum SftBoxOLEDragModeConstants Mode); |
object
Mode
Defines OLE drag support, determining whether the control can be used as an OLE drag & drop drag source.
Mode | Value | Description |
---|---|---|
OLEDragSftBoxNone | 0 | The control cannot act as a drag source. |
OLEDragSftBoxManual | 1 | The application calls the OLEDrag method to start an OLE drag & drop operation using this control as a drag source. |
OLEDragSftBoxAutomatic | 2 | The control automatically starts an OLE drag & drop operation when a dragging operation is detected and provides default data to the DataObject. |
The OLEDragMode property defines whether the control can act as an OLE drag source.
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 OLEDragSftBoxManual, 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 OLEDragSftBoxAutomatic, the control automatically adds the text of the currently selected item to the DataObject. If the drag & drop operation is started from the edit control portion, only the text of the selection in the edit control is added. 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.
See Also SftBox Object | Object Hierarchy