Hide

SftButton/OCX 3.0 - Button Control

Display
Print

DropDownDownClick Property, SftButton Object

Defines whether the drop down button fires the DropDownClick event when the mouse button is either pressed or released.

Syntax

Get

VB.NETBoolean = object.DropDownDownClick As Boolean
VBBoolean = object.DropDownDownClick As Boolean
C#.NETbool Boolean = object.DropDownDownClick;
VC++VARIANT_BOOL Boolean = object->DropDownDownClick;
VARIANT_BOOL Boolean = object->GetDropDownDownClick();
CHRESULT object->get_DropDownDownClick(VARIANT_BOOL* Boolean);

Put

VB.NETobject.DropDownDownClick = Boolean As Boolean
VBobject.DropDownDownClick = Boolean As Boolean
C#.NETbool object.DropDownDownClick = Boolean;
VC++VARIANT_BOOL object->DropDownDownClick = Boolean;
void object->PutDropDownDownClick(VARIANT_BOOL Boolean);
CHRESULT object->put_DropDownDownClick(VARIANT_BOOL Boolean);

object

A SftButton object.

Boolean

Defines whether the drop down button fires the DropDownClick event when the mouse button is either pressed or released.

BooleanDescription
TrueThe DropDownClick event is fired as the mouse button is pressed.
FalseThe DropDownClick event is fired as the mouse button is released.

Comments

The DropDownDownClick property defines whether the drop down button fires the DropDownClick event when the mouse button is either pressed or released.

The DropDownDblClick event is also affected by this property.

A button control (including a Windows button control) normally doesn't fire the Click event until the mouse button is released. Using the DropDownDownClick property, this behavior can be changed for the drop down button. This is typically used when the drop down button displays a popup menu.

Only the drop down button is affected by this property. There is no equivalent property for the button portion.

Examples

VB.NET

    AxSftButton1.Text = "Code Sample"
    AxSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter
    AxSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter
    AxSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo
    ' Behavior
    AxSftButton1.AllowFocus = True
    AxSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes
    AxSftButton1.ClickInterval = 100
    AxSftButton1.DropDownDownClick = True
    AxSftButton1.DropDownFollows = False
    AxSftButton1.DropDownPressed = False
    AxSftButton1.DropDownToggle = False
    AxSftButton1.Enabled = True
    AxSftButton1.Follows = False
    AxSftButton1.OLEDragMode = SftButtonOLEDragModeConstants.OLEDragSftButtonNone
    AxSftButton1.OLEDropMode = SftButtonOLEDropModeConstants.OLEDropSftButtonNone

VB6

    SftButton1.Text = "Code Sample"
    SftButton1.TextAlignHorz = alignSftButtonCenter
    SftButton1.TextAlignVert = alignSftButtonVCenter
    SftButton1.UseThemes = themesSftButtonNo
' Behavior
    SftButton1.AllowFocus = True
    SftButton1.Bounce = bounceSftButtonYes
    SftButton1.ClickInterval = 100
    SftButton1.DropDownDownClick = True
    SftButton1.DropDownFollows = False
    SftButton1.DropDownPressed = False
    SftButton1.DropDownToggle = False
    SftButton1.Enabled = True
    SftButton1.Follows = False
    SftButton1.OLEDragMode = OLEDragSftButtonNone
    SftButton1.OLEDropMode = OLEDropSftButtonNone

C#

    axSftButton1.Text = "Code Sample";
    axSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter;
    axSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter;
    axSftButton1.UseThemes = SftButtonThemesConstants.themesSftButtonNo;
    // Behavior
    axSftButton1.AllowFocus = true;
    axSftButton1.Bounce = SftButtonBounceStyleConstants.bounceSftButtonYes;
    axSftButton1.ClickInterval = 100;
    axSftButton1.DropDownDownClick = true;
    axSftButton1.DropDownFollows = false;
    axSftButton1.DropDownPressed = false;
    axSftButton1.DropDownToggle = false;
    axSftButton1.Enabled = true;
    axSftButton1.Follows = false;
    axSftButton1.OLEDragMode = SftButtonOLEDragModeConstants.OLEDragSftButtonNone;
    axSftButton1.OLEDropMode = SftButtonOLEDropModeConstants.OLEDropSftButtonNone;

C++

    m_vButton->put_Text(_bstr_t(_T("Code Sample")));
    m_vButton->put_TextAlignHorz(alignSftButtonCenter);
    m_vButton->put_TextAlignVert(alignSftButtonVCenter);
    m_vButton->put_UseThemes(themesSftButtonNo);
// Behavior
    m_vButton->put_AllowFocus(VARIANT_TRUE);
    m_vButton->put_Bounce(bounceSftButtonYes);
    m_vButton->put_ClickInterval(100);
    m_vButton->put_DropDownDownClick(VARIANT_TRUE);
    m_vButton->put_DropDownFollows(VARIANT_FALSE);
    m_vButton->put_DropDownPressed(VARIANT_FALSE);
    m_vButton->put_DropDownToggle(VARIANT_FALSE);
    m_vButton->put_Enabled(VARIANT_TRUE);
    m_vButton->put_Follows(VARIANT_FALSE);
    m_vButton->put_OLEDragMode(OLEDragSftButtonNone);
    m_vButton->put_OLEDropMode(OLEDropSftButtonNone);

See Also SftButton Object | Object Hierarchy


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