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 the drop down portion is shown/hidden.
Get
VB.NET | Boolean = object.Dropped As Boolean |
VB | Boolean = object.Dropped As Boolean |
C#.NET | bool Boolean = object.Dropped; |
VC++ | VARIANT_BOOL Boolean = object->Dropped; VARIANT_BOOL Boolean = object->GetDropped(); |
C | HRESULT object->get_Dropped(VARIANT_BOOL* Boolean); |
Put
VB.NET | object.Dropped = Boolean As Boolean |
VB | object.Dropped = Boolean As Boolean |
C#.NET | bool object.Dropped = Boolean; |
VC++ | VARIANT_BOOL object->Dropped = Boolean; void object->PutDropped(VARIANT_BOOL Boolean); |
C | HRESULT object->put_Dropped(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the drop down portion is shown/hidden.
Boolean | Description |
---|---|
True | The drop down portion is shown. |
False | The drop down portion is hidden. |
The Dropped property defines whether the drop down portion is shown/hidden.
The drop down portion can only be visible when the control has the input focus. Setting the Dropped property when the control does not have the input focus will set the input focus to the control and display the drop down portion.
The DropDown.RollUp method can also be used to hide the drop down portion.
This property cannot be used with a simple combo box.
e.allowedEffects = vbDropEffectCopy Or vbDropEffectMove Dim textData As String = comboSource.get_Cell(comboSource.Items.Selection, 0).Text e.data.SetData(textData, SftOLEClipboardConstants.sftCFText) End Sub Private Sub comboTarget_OLEDragOver(ByVal sender As Object, ByVal e As AxSftBoxLib50._ISftBoxEvents_OLEDragOverEvent) Handles comboTarget.OLEDragOver If e.state = SftBoxOLEDragOverConstants.enterSftBox Then ' Show the drop down portion comboTarget.DropDown.Dropped = True ElseIf e.state = SftBoxOLEDragOverConstants.leaveSftBox Then ' Hide the drop down portion with a delay, in case the ' user is moving from/to the static or drop down portion comboTarget.DropDown.RollUp(500) ' 1/2 second End If End Sub
Option Explicit Private Sub ComboTarget_OLEDragOver(Data As SftBoxLib50.DataObject, TargetIndex As Long, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As SftBoxLib50.SftBoxOLEDragOverConstants) If State = enterSftBox Then ' Show the drop down portion ComboTarget.DropDown.Dropped = True ElseIf State = leaveSftBox Then ' Hide the drop down portion with a delay, in case the ' user is moving from/to the static or drop down portion ComboTarget.DropDown.RollUp 500 ' 1/2 second End If End Sub Private Sub ComboTarget_OLEDragDrop(Data As SftBoxLib50.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single) Dim ItemIndex As Long If Data.GetFormat(sftCFText) Then
string textData = comboSource.get_Cell(comboSource.Items.Selection, 0).Text; e.data.SetData(textData, SftOLEClipboardConstants.sftCFText); } private void comboTarget_OLEDragOver(object sender, AxSftBoxLib50._ISftBoxEvents_OLEDragOverEvent e) { if (e.state == SftBoxOLEDragOverConstants.enterSftBox) { // Show the drop down portion comboTarget.DropDown.Dropped = true; } else if (e.state == SftBoxOLEDragOverConstants.leaveSftBox) { // Hide the drop down portion with a delay, in case the // user is moving from/to the static or drop down portion comboTarget.DropDown.RollUp(500); // 1/2 second } }
See Also SftBoxDropDown Object | Object Hierarchy