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
Suppresses showing/hiding the drop down portion for the current event.
VB.NET | object.Suppress() |
VB | object.Suppress |
C#.NET | void object.Suppress(); |
VC++ | HRESULT object->Suppress(); |
C | HRESULT object->raw_Suppress(); |
object
The Suppress method suppresses showing/hiding the drop down portion for the current event.
Once an ItemClick or ItemDblClk event is processed, the drop down portion may automatically become visible or may be hidden in response. This default action is built into the control. It is possible to suppress the default response by using the DropDown.Suppress method while handling the ItemClick or ItemDblClk event.
This method has no effect on a simple combo box.
Private Sub AxSftBox1_ItemClick(ByVal sender As Object, ByVal e As AxSftBoxLib50._ISftBoxEvents_ItemClickEvent) Handles AxSftBox1.ItemClick Select Case e.areaType Case SftBoxAreaConstants.areaSftBoxColumn If e.colNum = 0 Then SetSortDirection(Not m_SortDirection) End If Case SftBoxAreaConstants.areaSftBoxCellGraphic If e.part = SftBoxPortionConstants.partSftBoxDropDown Then AxSftBox1.DropDown.Suppress() ' Make sure we don't close the drop down End If ToggleImage(AxSftBox1.get_Cell(e.itemIndex, e.colNum).Image) Case SftBoxAreaConstants.areaSftBoxItem If e.part = SftBoxPortionConstants.partSftBoxDropDown Then AxSftBox1.DropDown.Suppress() ' Make sure we don't close the drop down End If ToggleImage(AxSftBox1.get_Item(e.itemIndex).Image)
Private Sub SftBox1_ItemClick(ByVal Part As SftBoxLib50.SftBoxPortionConstants, ByVal AreaType As SftBoxLib50.SftBoxAreaConstants, ByVal ItemIndex As Long, ByVal ColNum As Integer, ByVal Button As Integer, ByVal Shift As Integer) Select Case AreaType Case areaSftBoxColumn If ColNum = 0 Then SetSortDirection Not SortDirection End If Case areaSftBoxCellGraphic If Part = partSftBoxDropDown Then SftBox1.DropDown.Suppress ' Make sure we don't close the drop down ToggleImage SftBox1.Cell(ItemIndex, ColNum).Image Case areaSftBoxItem If Part = partSftBoxDropDown Then SftBox1.DropDown.Suppress ' Make sure we don't close the drop down ToggleImage SftBox1.Item(ItemIndex).Image Case areaSftBoxLabel If Part = partSftBoxDropDown Then SftBox1.DropDown.Suppress ' Make sure we don't close the drop down ToggleImage SftBox1.Item(ItemIndex).LabelImage Case areaSftBoxButton
{ switch (e.areaType) { case SftBoxAreaConstants.areaSftBoxColumn: if (e.colNum == 0) SetSortDirection(!m_SortDirection); break; case SftBoxAreaConstants.areaSftBoxCellGraphic: if (e.part == SftBoxPortionConstants.partSftBoxDropDown) axSftBox1.DropDown.Suppress(); // Make sure we don't close the drop down ToggleImage(axSftBox1.get_Cell(e.itemIndex, e.colNum).Image); break; case SftBoxAreaConstants.areaSftBoxItem: if (e.part == SftBoxPortionConstants.partSftBoxDropDown) axSftBox1.DropDown.Suppress(); // Make sure we don't close the drop down ToggleImage(axSftBox1.get_Item(e.itemIndex).Image); break;
{ switch (AreaType) { case areaSftBoxColumn: if (ColNum == 0) SetSortDirection(!m_fSortDirection); break; case areaSftBoxCellGraphic: if (Part == partSftBoxDropDown) m_vBox->DropDown->Suppress(); // Make sure we don't close the drop down ToggleImage(m_vBox->Cell[ItemIndex][ColNum]->Image); break; case areaSftBoxItem: if (Part == partSftBoxDropDown) m_vBox->DropDown->Suppress(); // Make sure we don't close the drop down ToggleImage(m_vBox->Item[ItemIndex]->Image); break;
See Also SftBoxDropDown Object | Object Hierarchy