Hide

SftButton/OCX 3.0 - Button Control

Display
Print

AVITransparent Property, SftButton Object

Defines whether animations are transparent.

Syntax

Get

VB.NETBoolean = object.AVITransparent As Boolean
VBBoolean = object.AVITransparent As Boolean
C#.NETbool Boolean = object.AVITransparent;
VC++VARIANT_BOOL Boolean = object->AVITransparent;
VARIANT_BOOL Boolean = object->GetAVITransparent();
CHRESULT object->get_AVITransparent(VARIANT_BOOL* Boolean);

Put

VB.NETobject.AVITransparent = Boolean As Boolean
VBobject.AVITransparent = Boolean As Boolean
C#.NETbool object.AVITransparent = Boolean;
VC++VARIANT_BOOL object->AVITransparent = Boolean;
void object->PutAVITransparent(VARIANT_BOOL Boolean);
CHRESULT object->put_AVITransparent(VARIANT_BOOL Boolean);

object

A SftButton object.

Boolean

Defines whether animations are transparent.

BooleanDescription
TrueAnimations are transparent. The top, left pixel of the first frame of the animation defines the color which will be replaced by the actual background color (BackColor). Because the color is replaced by the defined background color, animations on gradient backgrounds (or themed background) will not be truly transparent.
FalseAnimations are not transparent.

Comments

The AVITransparent property defines whether animations are transparent.

Transparency of animations is limited to the color defined using the BackColor property, the BackColorPressed property is not used for transparency. If gradient backgrounds or Windows themes (Windows XP) are used, animation transparency uses the defined background color BackColor which will not match the possibly textured background.

Examples

VB.NET

    ' is to provide runtime initialization of a SftButton control,
    ' so we have some code samples for the properties.

    ' 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

VB6

' is to provide runtime initialization of a SftButton control,
' so we have some code samples for the properties.

' 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

C#

    // is to provide runtime initialization of a SftButton control,
    // so we have some code samples for the properties.

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

C++

    // so we have some code samples for the properties.

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

See Also SftButton Object | Object Hierarchy


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