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 SftDirectoryFolder object of the currently selected file/folder.
Get
VB.NET | refFolderObj = object.CurrentFolder As SftDirectoryFolder |
VB | Set refFolderObj = object.CurrentFolder As SftDirectoryFolder |
C#.NET | SftDirectoryFolder refFolderObj = object.CurrentFolder; |
VC++ | ISftDirectoryFolder* refFolderObj = object->CurrentFolder; ISftDirectoryFolder* refFolderObj = object->GetCurrentFolder(); |
C | HRESULT object->get_CurrentFolder(ISftDirectoryFolder** refFolderObj); |
object
refFolderObj
Returns the SftDirectoryFolder object of the currently selected file/folder.
The CurrentFolder property returns the SftDirectoryFolder object of the currently selected file/folder.
A current folder is not always present. Particularly in a combo box style control, there may be no selection at all, so the CurrentFolder property may return Nothing (NULL).
AxSftDirectoryDL_Combo.Headers.Style = style End Sub Private Sub AxSftDirectoryTV_CheckBoxClicked(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent) Handles AxSftDirectoryTV.CheckBoxClicked If e.newValue <> SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo And _ e.newValue <> SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes Then e.newValue = SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes End If AxSftDirectoryTV.CurrentFolder.SetSubFolderCheckBoxes(e.newValue, True) AxSftDirectoryTV.CurrentFolder.CheckBox = e.newValue AxSftDirectoryTV.RootFolder.EvaluateSubFolderCheckBoxes(True) End Sub Private Sub AxSftDirectoryTV_Combo_CheckBoxClicked(ByVal sender As Object, ByVal e As AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent) Handles AxSftDirectoryTV_Combo.CheckBoxClicked If e.newValue <> SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo And _ e.newValue <> SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes Then
SftDirectoryTV_Combo.Headers.Style = Style SftDirectoryDL_Combo.Headers.Style = Style End Sub Private Sub SftDirectoryTV_CheckBoxClicked(ByVal Folder As SftDirectoryLib30.ISftDirectoryFolder, ByVal OldValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants, NewValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants) If NewValue <> checkboxSftDirectoryNo And NewValue <> checkboxSftDirectoryYes Then NewValue = checkboxSftDirectoryYes End If SftDirectoryTV.CurrentFolder.SetSubFolderCheckBoxes NewValue, True SftDirectoryTV.CurrentFolder.CheckBox = NewValue SftDirectoryTV.RootFolder.EvaluateSubFolderCheckBoxes True End Sub Private Sub SftDirectoryTV_Combo_CheckBoxClicked(ByVal Folder As SftDirectoryLib30.ISftDirectoryFolder, ByVal OldValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants, NewValue As SftDirectoryLib30.SftDirectoryCheckBoxValueConstants) If NewValue <> checkboxSftDirectoryNo And NewValue <> checkboxSftDirectoryYes Then NewValue = checkboxSftDirectoryYes
axSftDirectoryDL_Combo.Headers.Style = style; } private void axSftDirectoryTV_CheckBoxClicked(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent e) { if (e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo && e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes) { e.newValue = SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes; } axSftDirectoryTV.CurrentFolder.SetSubFolderCheckBoxes(e.newValue, true); axSftDirectoryTV.CurrentFolder.CheckBox = e.newValue; axSftDirectoryTV.RootFolder.EvaluateSubFolderCheckBoxes(true); } private void axSftDirectoryTV_Combo_CheckBoxClicked(object sender, AxSftDirectoryLib30._ISftDirectoryEvents_CheckBoxClickedEvent e) { if (e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryNo && e.newValue != SftDirectoryCheckBoxValueConstants.checkboxSftDirectoryYes) {
vDirDL_Combo->Headers->Style = style; } void CControlStylesDlg::OnCheckBoxClickedSftDirectoryTV(LPDISPATCH Folder, long OldValue, long FAR* NewValue) { if (*NewValue != checkboxSftDirectoryNo && *NewValue != checkboxSftDirectoryYes) *NewValue = checkboxSftDirectoryYes; ISftDirectoryPtr vDirTV = m_SftDirectoryTV.GetControlUnknown(); vDirTV->CurrentFolder->SetSubFolderCheckBoxes((SftDirectoryCheckBoxValueConstants) *NewValue, VARIANT_TRUE); vDirTV->CurrentFolder->CheckBox = (SftDirectoryCheckBoxValueConstants) *NewValue; vDirTV->RootFolder->EvaluateSubFolderCheckBoxes(VARIANT_TRUE); } void CControlStylesDlg::OnCheckBoxClickedSftDirectoryTVCombo(LPDISPATCH Folder, long OldValue, long FAR* NewValue) { if (*NewValue != checkboxSftDirectoryNo && *NewValue != checkboxSftDirectoryYes)
See Also SftDirectory Object | Object Hierarchy