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 button is pressed (toggle button only).
Get
| VB.NET | Boolean = object.DropDownPressed As Boolean |
| VB | Boolean = object.DropDownPressed As Boolean |
| C#.NET | bool Boolean = object.DropDownPressed; |
| VC++ | VARIANT_BOOL Boolean = object->DropDownPressed; VARIANT_BOOL Boolean = object->GetDropDownPressed(); |
| C | HRESULT object->get_DropDownPressed(VARIANT_BOOL* Boolean); |
Put
| VB.NET | object.DropDownPressed = Boolean As Boolean |
| VB | object.DropDownPressed = Boolean As Boolean |
| C#.NET | bool object.DropDownPressed = Boolean; |
| VC++ | VARIANT_BOOL object->DropDownPressed = Boolean; void object->PutDropDownPressed(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_DropDownPressed(VARIANT_BOOL Boolean); |
object
Boolean
Defines whether the drop down button is pressed (toggle button only).
| Boolean | Description |
|---|---|
| True | The drop down button is pressed. |
| False | The drop down button is released. |
The DropDownPressed property defines whether the drop down button is pressed (toggle button only).
When using the DropDownPressed property, the DropDownClick event does not occur.
The DropDownToggle property must be set to True for this property to take effect.
The button portion is controlled by the equivalent Pressed property.
AxSftButton3.WhiteEdgeColor = SystemColors.ControlLightLight
End If
End Sub
Private Sub PressedTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PressedTimer.Tick
' Toggle the button and drop down button state
If AxSftButton4.Pressed Then
If AxSftButton4.DropDownPressed Then
AxSftButton4.Pressed = False
Else
AxSftButton4.DropDownPressed = True
End If
Else
If AxSftButton4.DropDownPressed Then
AxSftButton4.DropDownPressed = False
End If
End With
End Sub
Private Sub PressedTimer_Timer()
' Toggle the button and drop down button state
With SftButton4
If .Pressed Then
If .DropDownPressed Then
.Pressed = False
Else
.DropDownPressed = True
End If
Else
If .DropDownPressed Then
.DropDownPressed = False
}
}
private void pressedTimer_Tick(object sender, System.EventArgs e)
{
// Toggle the button and drop down button state
if (axSftButton4.Pressed)
{
if (axSftButton4.DropDownPressed)
axSftButton4.Pressed = false;
else
axSftButton4.DropDownPressed = true;
} else {
if (axSftButton4.DropDownPressed)
axSftButton4.DropDownPressed = false;
else
m_vButton3->PutWhiteEdgeColor(0x80000000L|COLOR_3DHILIGHT);
}
}
void CSpecialDlg::ToggleButton()
{
// Toggle the button and drop down button state
if (m_vButton4->Pressed) {
if (m_vButton4->DropDownPressed)
m_vButton4->Pressed = VARIANT_FALSE;
else
m_vButton4->DropDownPressed = VARIANT_TRUE;
} else {
if (m_vButton4->DropDownPressed)
m_vButton4->DropDownPressed = VARIANT_FALSE;
elseSee Also SftButton Object | Object Hierarchy
