HeaderPane
Main
Hide
Share Link
Print

OLEDrag Method, SftTabs Object

Initiates an OLE drag & drop operation.

Syntax

VBobject.OLEDrag

object

A SftTabs object.

Comments

The OLEDrag method initiates an OLE drag & drop operation.

When the OLEDrag method is called, the OLEStartDrag event occurs, allowing the application to supply data to a target component.

An application invokes an OLE drag & drop operation explicitly using the OLEDrag method.

Example

See Reorder Sample

Examples

VB6 View entire sample code

Private Sub SftTabs1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
    Dim TabIndex As Integer
    If StartTabIndex >= 0 Then
        ' previously we saw a MouseDown event
        ' we'll make sure the mouse has moved a reasonable distance so this
        ' isn't too sensitive
        If Abs(xPos - StartX) > 40 Or Abs(yPos - StartY) > 40 Then
            ' moved quite a bit, start dragging
            SftTabs1.OLEDrag
        End If
    End If
End Sub

Private Sub SftTabs1_MouseUp(ByVal Button As Integer, ByVal Shift As Integer, ByVal xPos As Single, ByVal yPos As Single)
    ' the mouse button was released
    StartTabIndex = -1

See Also SftTabs Object | Object Hierarchy


Last Updated 11/19/2026 - (email)
© 2026 Softel vdm, Inc.