Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.ShowCheckBoxes Property

Defines whether checkboxes are shown.

Syntax

Get

VB.NETStyle = object.ShowCheckBoxes As SftDirectoryCheckBoxDisplayConstants
VBStyle = object.ShowCheckBoxes As SftDirectoryCheckBoxDisplayConstants
C#.NETSftDirectoryCheckBoxDisplayConstants Style = object.ShowCheckBoxes;
VC++enum SftDirectoryCheckBoxDisplayConstants Style = object->ShowCheckBoxes;
enum SftDirectoryCheckBoxDisplayConstants Style = object->GetShowCheckBoxes();
CHRESULT object->get_ShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants* Style);

Put

VB.NETobject.ShowCheckBoxes = Style As SftDirectoryCheckBoxDisplayConstants
VBobject.ShowCheckBoxes = Style As SftDirectoryCheckBoxDisplayConstants
C#.NETSftDirectoryCheckBoxDisplayConstants object.ShowCheckBoxes = Style;
VC++enum SftDirectoryCheckBoxDisplayConstants object->ShowCheckBoxes = Style;
void object->PutShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants Style);
CHRESULT object->put_ShowCheckBoxes(enum SftDirectoryCheckBoxDisplayConstants Style);

object

A SftDirectory object.

Style

Defines whether checkboxes are shown.

StyleValueDescription
checkboxDisplaySftDirectoryNone0None - Checkboxes are not available.
checkboxDisplaySftDirectoryAll1All - All files/folders offer checkboxes. The available checkbox is displayed between the folder icon and the text of the first or only column.
checkboxDisplaySftDirectoryAllLeft2All - All files/folders offer checkboxes. The available checkbox is displayed along the left edge of the control.

Comments

The ShowCheckBoxes property defines whether checkboxes are shown.

The checkbox settings for each folder can be defined using the Folder.CheckBox property.

Examples

VB.NET

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

VB6

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

C#

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;

C++

    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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.