Hide

SftButton/OCX 3.0 - Button Control

Display
Print

DropDownPressed Property, SftButton Object

Defines whether the drop down button is pressed (toggle button only).

Syntax

Get

VB.NETBoolean = object.DropDownPressed As Boolean
VBBoolean = object.DropDownPressed As Boolean
C#.NETbool Boolean = object.DropDownPressed;
VC++VARIANT_BOOL Boolean = object->DropDownPressed;
VARIANT_BOOL Boolean = object->GetDropDownPressed();
CHRESULT object->get_DropDownPressed(VARIANT_BOOL* Boolean);

Put

VB.NETobject.DropDownPressed = Boolean As Boolean
VBobject.DropDownPressed = Boolean As Boolean
C#.NETbool object.DropDownPressed = Boolean;
VC++VARIANT_BOOL object->DropDownPressed = Boolean;
void object->PutDropDownPressed(VARIANT_BOOL Boolean);
CHRESULT object->put_DropDownPressed(VARIANT_BOOL Boolean);

object

A SftButton object.

Boolean

Defines whether the drop down button is pressed (toggle button only).

BooleanDescription
TrueThe drop down button is pressed.
FalseThe drop down button is released.

Comments

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.

Examples

VB.NET

        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

VB6

        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

C#

    }
}

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

C++

        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

See Also SftButton Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.