Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

OLE Drag & Drop

SftTabs/OCX supports OLE drag & drop, based on the OLEDragMode and OLEDropMode settings.

OLE Drag & Drop

If the OLEDragMode property is set to OLEDragSftControlManual, OLE drag & drop mechanisms are used. This is the most powerful drag & drop method supported by SftTabs/OCX. In this mode, drag & drop between controls in the same application and between different applications is supported, including drag & drop to and from Windows Explorer.

Using the OLEDropMode property, SftTabs/OCX can be defined as a valid drop target. The OLEDragDrop event occurs when a drop occurs on the control. The application can retrieve the data and data format using the GetData and GetFormat methods.

SftTabs/OCX can also be used as the source of a drag & drop operation. By using the OLEDragMode property (set to OLEDragSftControlManual), the OLEStartDrag event occurs as soon as a drag & drop operation is about to begin (using the OLEDrag method).

The Visual Basic's DragMode property must be set to vbManual for OLE drag & drop.

In the OLEStartDrag event, the application can define the data or data formats and drop effects that are supported for the drag & drop operation.

Drag & Drop Controlled by the Container Application

Visual Basic also supports its own drag & drop which is not based on OLE. Visual Basic's drag & drop methods only operate within the same application. The DragMode property (added to the control and documented by Visual Basic) controls this drag & drop processing. Please see the Visual Basic documentation for more information.


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