Hide

SftButton/OCX 3.0 - Button Control

Display
Print

DropDownToggle Property, SftButton Object

Defines whether the drop down button is a toggle button.

Syntax

Get

VB.NETBoolean = object.DropDownToggle As Boolean
VBBoolean = object.DropDownToggle As Boolean
C#.NETbool Boolean = object.DropDownToggle;
VC++VARIANT_BOOL Boolean = object->DropDownToggle;
VARIANT_BOOL Boolean = object->GetDropDownToggle();
CHRESULT object->get_DropDownToggle(VARIANT_BOOL* Boolean);

Put

VB.NETobject.DropDownToggle = Boolean As Boolean
VBobject.DropDownToggle = Boolean As Boolean
C#.NETbool object.DropDownToggle = Boolean;
VC++VARIANT_BOOL object->DropDownToggle = Boolean;
void object->PutDropDownToggle(VARIANT_BOOL Boolean);
CHRESULT object->put_DropDownToggle(VARIANT_BOOL Boolean);

object

A SftButton object.

Boolean

Defines whether the drop down button is a toggle button.

BooleanDescription
TrueThe drop down button is a toggle button.
FalseThe drop down button is not a toggle button and automatically returns to its released state after being pressed.

Comments

The DropDownToggle property defines whether the drop down button is a toggle button.

Once the mouse button is released after clicking a button, a button usually returns to its released position (i.e., not pressed). By defining the drop down button as a toggle button using the DropDownToggle property, the drop down button can instead act as an on/off switch. Each mouse click will alternate between the pressed and released positions.

The status of the drop down button can be defined using the DropDownPressed property.

The button portion is controlled by the equivalent Toggle property.

Examples

VB.NET

    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
    AxSftButton1.RightToLeft = False
    AxSftButton1.Toggle = False
    ' Colors

VB6

    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
    SftButton1.RightToLeft = False
    SftButton1.Toggle = False
' Colors

C#

    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;
    axSftButton1.RightToLeft = false;
    axSftButton1.Toggle = false;
    // Colors

C++

    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);
    m_vButton->put_RightToLeft(VARIANT_FALSE);
    m_vButton->put_Toggle(VARIANT_FALSE);
// Colors

See Also SftButton Object | Object Hierarchy


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