Defines whether the drop down button is pressed (toggle button only).
Get
| C# | bool Boolean = object.DropDownPressed; |
| VB.NET | Boolean = object.DropDownPressed As Boolean |
| C++ | VARIANT_BOOL Boolean = object->DropDownPressed; VARIANT_BOOL Boolean = object->GetDropDownPressed(); |
| C | HRESULT object->get_DropDownPressed(VARIANT_BOOL* Boolean); |
| VB | Boolean = object.DropDownPressed As Boolean |
Put
| C# | bool object.DropDownPressed = Boolean; |
| VB.NET | object.DropDownPressed = Boolean As Boolean |
| C++ | VARIANT_BOOL object->DropDownPressed = Boolean; void object->PutDropDownPressed(VARIANT_BOOL Boolean); |
| C | HRESULT object->put_DropDownPressed(VARIANT_BOOL Boolean); |
| VB | object.DropDownPressed = Boolean As 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.
}
}
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
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
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;
else
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 = FalseSee Also SftButton Object | Object Hierarchy