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 working with selections.
This is not an executable sample, so a complete project is not provided. These statements are intended to show the syntax used.
Private Sub Form_Load()
' This sample uses 2 SftDirectory controls
' SftDirectory1 allows single selection only
SftDirectory1.MultiSelect = selectSftDirectorySingle
' SftDirectory2 allows multiple selection
SftDirectory2.MultiSelect = selectSftDirectoryMultiple
End Sub
' This is a button event handler
Private Sub Command1_Click()
' Select one file/folder (in a single selection control)
SftDirectory1.FolderList(1).Selected = True
' Select a few files/folders (in a multiple selection control)
SftDirectory2.FolderList(1).Selected = True
SftDirectory2.FolderList(3).Selected = True
SftDirectory2.FolderList(5).Selected = True
End Sub
' This is another button event handler
Private Sub Command2_Click()
' Show the selected file/folder (in a single selection control)
Dim F As SftDirectoryFolder
Set F = SftDirectory1.Selection(0)
If Not F Is Nothing Then
MsgBox ("""" & F.Name & """ is selected (in the single selection control).")
End If
' Show the selected files/folders (in a multiple selection control)
Dim I As Integer
For I = 0 To SftDirectory2.SelectionCount - 1
MsgBox ("""" & SftDirectory2.Selection(I).Name & """ is selected (in the multiple selection control).")
Next
End Sub
