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
The current selection is changing.
VB.NET | Private Sub object_SelectionChange(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.SelectionChange |
VB | Private Sub object_SelectionChange() |
C#.NET | void object_SelectionChange(object sender, EventArgumentType e); |
VC++ | void OnSelectionChangeobject(); |
C | HRESULT OnSelectionChangeobject(); |
object
The SelectionChange event occurs when the current selection is changing.
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
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
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();
}
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