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
This sample illustrates using an OLE drop target.
This is not an executable sample, so a complete project is not provided. These statements are intended to show basic concepts and the syntax used.
' Shows an OLEDragDrop event handler that accepts text data
' being dropped on the Masked Edit control.
Private Sub Form_Load()
SftMask1.Caption.SizePercent = 33
SftMask1.Caption.Text = "&Filename:"
SftMask1.Mask = ""
SftMask1.MaxLength = 300
SftMask1.PromptUnderline = False
SftMask1.OLEDropMode = OLEDropSftMaskManual
End Sub
Private Sub SftMask1_OLEDragDrop(Data As SftMaskLib70.DataObject, TargetChar As Long, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single)
Dim S As String
If Data.GetFormat(sftCFText) Then
S = Data.GetData(sftCFText)
SftMask1.SelStart = TargetChar
SftMask1.SelText = S
Else
Effect = vbDropEffectNone
End If
End Sub
Private Sub SftMask1_OLEDragOver(Data As SftMaskLib70.DataObject, TargetChar As Long, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As SftMaskLib70.SftMaskOLEDragOverConstants)
If TargetChar < 0 Then
' Outside edit control (on caption)
Effect = vbDropEffectNone
Else
' Inside edit control
If Data.GetFormat(sftCFText) Then
' OK, we have a text format
Else
' No text format
Effect = vbDropEffectNone
End If
End If
End Sub