Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBox.SelectionChange Event

The current selection is changing.

Syntax

VB.NETPrivate Sub object_SelectionChange(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.SelectionChange
VBPrivate Sub object_SelectionChange()
C#.NETvoid object_SelectionChange(object sender, EventArgumentType e);
VC++void OnSelectionChangeobject();
CHRESULT OnSelectionChangeobject();

object

A SftBox object.

Comments

The SelectionChange event occurs when the current selection is changing.

Examples

VB.NET

    Case SftBoxAreaConstants.areaSftBoxButton, SftBoxAreaConstants.areaSftBoxCell
        If e.part = SftBoxPortionConstants.partSftBoxDropDown Then
            AxSftBox1.DropDown.Suppress() ' Make sure we don't close the drop down
        End If
        ExpandCollapseItem(e.itemIndex, e.shift)
    End Select
End Sub

Private Sub AxSftBox1_SelectionChange(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxSftBox1.SelectionChange
    CopyImageFromCurrentItem()
End Sub

VB6

            ToggleImage SftBox1.Item(ItemIndex).Image
        End If
    Case areaSftBoxButton, areaSftBoxCell
        If Part = partSftBoxDropDown Then SftBox1.DropDown.Suppress ' Make sure we don't close the drop down
        ExpandCollapseItem ItemIndex, Shift
    End Select
End Sub

Private Sub SftBox1_SelectionChange()
    CopyImageFromCurrentItem
End Sub

C#

    case SftBoxAreaConstants.areaSftBoxCell:
        if (e.part == SftBoxPortionConstants.partSftBoxDropDown)
            axSftBox1.DropDown.Suppress(); // Make sure we don't close the drop down
        ExpandCollapseItem(e.itemIndex, e.shift);
        break;
    }
}

private void axSftBox1_SelectionChange(object sender, System.EventArgs e)
{
    CopyImageFromCurrentItem();
}

C++

    case areaSftBoxCell:
        if (Part == partSftBoxDropDown)
            m_vBox->DropDown->Suppress(); // Make sure we don't close the drop down
        ExpandCollapseItem(ItemIndex, Shift);
        break;
    }
}

void CPicturesDlg::OnSelectionChangeSftBox1()
{
    CopyImageFromCurrentItem();
}

void CPicturesDlg::ShowSortDirection(BOOL fAscending)
{
    if (fAscending)

See Also SftBox Object | Object Hierarchy


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