Hide

SftButton/OCX 3.0 - Button Control

Display
Print

DropDownStyle Property, SftButton Object

Defines the width of the drop down button.

Syntax

Get

VB.NETStyle = object.DropDownStyle As SftButtonDropDownStyleConstants
VBStyle = object.DropDownStyle As SftButtonDropDownStyleConstants
C#.NETSftButtonDropDownStyleConstants Style = object.DropDownStyle;
VC++enum SftButtonDropDownStyleConstants Style = object->DropDownStyle;
enum SftButtonDropDownStyleConstants Style = object->GetDropDownStyle();
CHRESULT object->get_DropDownStyle(enum SftButtonDropDownStyleConstants* Style);

Put

VB.NETobject.DropDownStyle = Style As SftButtonDropDownStyleConstants
VBobject.DropDownStyle = Style As SftButtonDropDownStyleConstants
C#.NETSftButtonDropDownStyleConstants object.DropDownStyle = Style;
VC++enum SftButtonDropDownStyleConstants object->DropDownStyle = Style;
void object->PutDropDownStyle(enum SftButtonDropDownStyleConstants Style);
CHRESULT object->put_DropDownStyle(enum SftButtonDropDownStyleConstants Style);

object

A SftButton object.

Style

Defines the width of the drop down button.

NameValueDescription
dropdownstyleSftButtonStandard0Standard - The width of the drop down button is equivalent to the width of a vertical scroll bar button.
dropdownstyleSftButtonNarrow11Narrow1 - The width of the drop down button is 3/4 the width of a vertical scroll bar button.
dropdownstyleSftButtonNarrow22Narrow2 - The width of the drop down button is 2/3 the width of a vertical scroll bar button.
dropdownstyleSftButtonNarrow33Narrow3 - The width of the drop down button is 1/2 the width of a vertical scroll bar button.
dropdownstyleSftButtonWide14Wide1 - The width of the drop down button is 50% wider than a vertical scroll bar button.

Comments

The DropDownStyle property defines the width of the drop down button.

The ShowDropDown property defines whether the drop down button is displayed.

Examples

VB.NET

    ' "Properties" from the popup menu to access the property pages.

    ' Appearance
    AxSftButton1.AVITransparent = True
    AxSftButton1.BorderAlways = True
    AxSftButton1.BorderStyle = SftButtonBorderStyleConstants.borderSftButtonStandard
    AxSftButton1.ButtonStyle = SftButtonStyleConstants.styleSftButtonDropDown
    AxSftButton1.DropDownPressed = False
    AxSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard
    AxSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
    AxSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal
    AxSftButton1.Pressed = False
    AxSftButton1.ShowFocus = True
    AxSftButton1.Text = "Code Sample"
    AxSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter
    AxSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter

VB6

' "Properties" from the popup menu to access the property pages.

' Appearance
    SftButton1.AVITransparent = True
    SftButton1.BorderAlways = True
    SftButton1.BorderStyle = borderSftButtonStandard
    SftButton1.ButtonStyle = styleSftButtonDropDown
    SftButton1.DropDownPressed = False
    SftButton1.DropDownStyle = dropdownstyleSftButtonStandard
    SftButton1.FillOrientation = orientationSftButtonHorizontal
    SftButton1.Orientation = orientationSftButtonHorizontal
    SftButton1.Pressed = False
    SftButton1.ShowFocus = True
    SftButton1.Text = "Code Sample"
    SftButton1.TextAlignHorz = alignSftButtonCenter
    SftButton1.TextAlignVert = alignSftButtonVCenter

C#

    // "Properties" from the popup menu to access the property pages.

    // Appearance
    axSftButton1.AVITransparent = true;
    axSftButton1.BorderAlways = true;
    axSftButton1.BorderStyle = SftButtonBorderStyleConstants.borderSftButtonStandard;
    axSftButton1.ButtonStyle = SftButtonStyleConstants.styleSftButtonDropDown;
    axSftButton1.DropDownPressed = false;
    axSftButton1.DropDownStyle = SftButtonDropDownStyleConstants.dropdownstyleSftButtonStandard;
    axSftButton1.FillOrientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
    axSftButton1.Orientation = SftButtonOrientationConstants.orientationSftButtonHorizontal;
    axSftButton1.Pressed = false;
    axSftButton1.ShowFocus = true;
    axSftButton1.Text = "Code Sample";
    axSftButton1.TextAlignHorz = SftButtonAlignConstants.alignSftButtonCenter;
    axSftButton1.TextAlignVert = SftButtonAlignVertConstants.alignSftButtonVCenter;

C++

    m_vButton = m_Button1.GetControlUnknown();
// Appearance
    m_vButton->put_AVITransparent(VARIANT_TRUE);
    m_vButton->put_BorderAlways(VARIANT_TRUE);
    m_vButton->put_BorderStyle(borderSftButtonStandard);
    m_vButton->put_ButtonStyle(styleSftButtonDropDown);
    m_vButton->put_DropDownPressed(VARIANT_FALSE);
    m_vButton->put_DropDownStyle(dropdownstyleSftButtonStandard);
    m_vButton->put_FillOrientation(orientationSftButtonHorizontal);
    m_vButton->put_Orientation(orientationSftButtonHorizontal);
    m_vButton->put_Pressed(VARIANT_FALSE);
    m_vButton->put_ShowFocus(VARIANT_TRUE);
    m_vButton->put_Text(_bstr_t(_T("Code Sample")));
    m_vButton->put_TextAlignHorz(alignSftButtonCenter);
    m_vButton->put_TextAlignVert(alignSftButtonVCenter);
    m_vButton->put_UseThemes(themesSftButtonNo);

See Also SftButton Object | Object Hierarchy


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