Hide

SftButton/OCX 3.0 - Button Control

Display
Print

BorderStyle Property, SftButton Object

Defines the control's border style.

Syntax

Get

VB.NETStyle = object.BorderStyle As SftButtonBorderStyleConstants
VBStyle = object.BorderStyle As SftButtonBorderStyleConstants
C#.NETSftButtonBorderStyleConstants Style = object.BorderStyle;
VC++enum SftButtonBorderStyleConstants Style = object->BorderStyle;
enum SftButtonBorderStyleConstants Style = object->GetBorderStyle();
CHRESULT object->get_BorderStyle(enum SftButtonBorderStyleConstants* Style);

Put

VB.NETobject.BorderStyle = Style As SftButtonBorderStyleConstants
VBobject.BorderStyle = Style As SftButtonBorderStyleConstants
C#.NETSftButtonBorderStyleConstants object.BorderStyle = Style;
VC++enum SftButtonBorderStyleConstants object->BorderStyle = Style;
void object->PutBorderStyle(enum SftButtonBorderStyleConstants Style);
CHRESULT object->put_BorderStyle(enum SftButtonBorderStyleConstants Style);

object

A SftButton object.

Style

Defines the control's border style.

NameValueDescription
borderSftButtonThin0Thin - Displays a thin border around the control.
borderSftButtonStandard1Standard - Displays a regular border around the control, in appearance similar to the standard Windows button control.
borderSftButtonPixel12Pixel1 - Displays a single pixel border around the control. This value has no effect if Windows themes are used.

Comments

The BorderStyle property defines the control's border style.

The display of the border may be further controlled using the BorderAlways property.

If the ButtonStyle property is set to styleSftButtonNone, this property has no effect and is ignored. The border is never displayed.

Examples

VB.NET

    ' It is a lot easier to set properties at design-time using
    ' the property pages. Right-click on the control, then select
    ' "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"

VB6

' It is a lot easier to set properties at design-time using
' the property pages. Right-click on the control, then select
' "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"

C#

    // It is a lot easier to set properties at design-time using
    // the property pages. Right-click on the control, then select
    // "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";

C++

    // It is a lot easier to set properties at design-time using
    // the property pages. Right-click on the control, then select
    // "Properties" from the popup menu to access the property pages.

    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);

See Also SftButton Object | Object Hierarchy


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