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
Returns the root folder.
Get
| VB.NET | refFolderObj = object.RootFolder As SftDirectoryFolder |
| VB | Set refFolderObj = object.RootFolder As SftDirectoryFolder |
| C#.NET | SftDirectoryFolder refFolderObj = object.RootFolder; |
| VC++ | ISftDirectoryFolder* refFolderObj = object->RootFolder; ISftDirectoryFolder* refFolderObj = object->GetRootFolder(); |
| C | HRESULT object->get_RootFolder(ISftDirectoryFolder** refFolderObj); |
object
refFolderObj
Returns the root folder.
The RootFolder property returns the root folder.
The root folder is the topmost folder whose contents are displayed. Depending on the control style (see ControlStyle property), the root folder is part of the display and loaded as the first folder (styleSftDirectoryTreeView and styleSftDirectoryComboBoxTreeView) or is not displayed and describes the contents displayed (styleSftDirectoryDetailList and styleSftDirectoryComboBoxDetailList).
The RootFolder is determined by the TopMostFolder property, which defines the topmost folder loaded.
ButtonProp.Enabled = False
If AxSftDirectoryRight.SelectionCount > 0 And Not F Is Nothing Then
If F.Can("properties") Then
ButtonProp.Enabled = True
End If
End If
' Enable/disable New Folder button
ButtonNewFolder.Enabled = False
F = AxSftDirectoryRight.RootFolder
If Not F Is Nothing Then
If F.Can("NewFolder") Then
ButtonNewFolder.Enabled = True
End If
End If
End Sub
Set F = SftDirectoryRight.CurrentFolder
PropButton.Enabled = False
If SftDirectoryRight.SelectionCount > 0 And Not F Is Nothing Then
If F.Can("properties") Then
PropButton.Enabled = True
End If
End If
' Enable/disable New Folder button
Set F = SftDirectoryRight.RootFolder
NewButton.Enabled = False
If Not F Is Nothing Then
If F.Can("NewFolder") Then
NewButton.Enabled = True
End If
End If
End Sub
f = axSftDirectoryRight.CurrentFolder;
buttonProp.Enabled = false;
if (axSftDirectoryRight.SelectionCount > 0 && f != null) {
if (f.Can("properties"))
buttonProp.Enabled = true;
}
// Enable/disable New Folder button
f = axSftDirectoryRight.RootFolder;
buttonNewFolder.Enabled = false;
if (f != null) {
if (f.Can("NewFolder"))
buttonNewFolder.Enabled = true;
}
}
if (f->Can(_T("properties"))) {
fEnable = TRUE;
}
}
GetDlgItem(IDC_PROP_BUTTON)->EnableWindow(fEnable);
// Enable/disable New Folder button
fEnable = FALSE;
f = vDirRight->RootFolder;
if (f != NULL) {
if (f->Can(_T("NewFolder"))) {
fEnable = TRUE;
}
}
GetDlgItem(IDC_PROP_NEWFOLDER)->EnableWindow(fEnable);
}See Also SftDirectory Object | Object Hierarchy
