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
Defines whether checkboxes are shown.
Get
VB.NET | Style = object.ShowCheckBoxes As SftDirectoryCheckBoxDisplayConstants |
VB | Style = object.ShowCheckBoxes As SftDirectoryCheckBoxDisplayConstants |
C#.NET | SftDirectoryCheckBoxDisplayConstants Style = object.ShowCheckBoxes; |
VC++ | enum SftDirectoryCheckBoxDisplayConstants Style = object->ShowCheckBoxes; enum SftDirectoryCheckBoxDisplayConstants Style = object->GetShowCheckBoxes(); |
C | HRESULT object->get_ShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants* Style); |
Put
VB.NET | object.ShowCheckBoxes = Style As SftDirectoryCheckBoxDisplayConstants |
VB | object.ShowCheckBoxes = Style As SftDirectoryCheckBoxDisplayConstants |
C#.NET | SftDirectoryCheckBoxDisplayConstants object.ShowCheckBoxes = Style; |
VC++ | enum SftDirectoryCheckBoxDisplayConstants object->ShowCheckBoxes = Style; void object->PutShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants Style); |
C | HRESULT object->put_ShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants Style); |
object
Style
Defines whether checkboxes are shown.
Style | Value | Description |
---|---|---|
checkboxDisplaySftDirectoryNone | 0 | None - Checkboxes are not available. |
checkboxDisplaySftDirectoryAll | 1 | All - All files/folders offer checkboxes. The available checkbox is displayed between the folder icon and the text of the first or only column. |
checkboxDisplaySftDirectoryAllLeft | 2 | All - All files/folders offer checkboxes. The available checkbox is displayed along the left edge of the control. |
The ShowCheckBoxes property defines whether checkboxes are shown.
The checkbox settings for each folder can be defined using the Folder.CheckBox property.
Private Sub CheckCheckBoxes_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckCheckBoxes.CheckedChanged Dim style As SftDirectoryCheckBoxDisplayConstants If CheckCheckBoxes.CheckState = CheckState.Checked Then style = SftDirectoryCheckBoxDisplayConstants.checkboxDisplaySftDirectoryAll Else style = SftDirectoryCheckBoxDisplayConstants.checkboxDisplaySftDirectoryNone End If AxSftDirectoryTV.ShowCheckBoxes = style AxSftDirectoryDL.ShowCheckBoxes = style AxSftDirectoryTV_Combo.ShowCheckBoxes = style AxSftDirectoryDL_Combo.ShowCheckBoxes = style End Sub Private Sub CheckShowHeaders_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckShowHeaders.CheckedChanged Dim style As SftDirectoryHeadersStyleConstants
Private Sub CheckCheckBoxes_Click() Dim Style As SftDirectoryCheckBoxDisplayConstants If CheckCheckBoxes.Value <> 0 Then Style = checkboxDisplaySftDirectoryAll Else Style = checkboxDisplaySftDirectoryNone End If SftDirectoryTV.ShowCheckBoxes = Style SftDirectoryDL.ShowCheckBoxes = Style SftDirectoryTV_Combo.ShowCheckBoxes = Style SftDirectoryDL_Combo.ShowCheckBoxes = Style End Sub Private Sub CheckShowHeaders_Click() Dim Style As SftDirectoryHeadersStyleConstants
private void CheckCheckBoxes_CheckedChanged(object sender, System.EventArgs e) { SftDirectoryCheckBoxDisplayConstants style; if (CheckCheckBoxes.CheckState == CheckState.Checked) style = SftDirectoryCheckBoxDisplayConstants.checkboxDisplaySftDirectoryAll; else style = SftDirectoryCheckBoxDisplayConstants.checkboxDisplaySftDirectoryNone; axSftDirectoryTV.ShowCheckBoxes = style; axSftDirectoryDL.ShowCheckBoxes = style; axSftDirectoryTV_Combo.ShowCheckBoxes = style; axSftDirectoryDL_Combo.ShowCheckBoxes = style; } private void CheckShowHeaders_CheckedChanged(object sender, System.EventArgs e) { SftDirectoryHeadersStyleConstants style;
SftDirectoryCheckBoxDisplayConstants style; if (m_CheckCheckBoxes.GetCheck()) style = checkboxDisplaySftDirectoryAll; else style = checkboxDisplaySftDirectoryNone; ISftDirectoryPtr vDirTV = m_SftDirectoryTV.GetControlUnknown(); vDirTV->ShowCheckBoxes = style; ISftDirectoryPtr vDirDL = m_SftDirectoryDL.GetControlUnknown(); vDirDL->ShowCheckBoxes = style; ISftDirectoryPtr vDirTV_Combo = m_SftDirectoryTV_Combo.GetControlUnknown(); vDirTV_Combo->ShowCheckBoxes = style; ISftDirectoryPtr vDirDL_Combo = m_SftDirectoryDL_Combo.GetControlUnknown(); vDirDL_Combo->ShowCheckBoxes = style; }
See Also SftDirectory Object | Object Hierarchy