Hide

SftButton/OCX 3.0 - Button Control

Display
Print

BackColorFocusEnd Property, SftButton Object

Defines the control's gradient fill background color when it has the input focus (combined with BackColorFocusStart).

Syntax

Get

VB.NETClr = object.BackColorFocusEnd As System.Drawing.Color
VBClr = object.BackColorFocusEnd As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.BackColorFocusEnd;
VC++OLE_COLOR Clr = object->BackColorFocusEnd;
OLE_COLOR Clr = object->GetBackColorFocusEnd();
CHRESULT object->get_BackColorFocusEnd(OLE_COLOR* Clr);

Put

VB.NETobject.BackColorFocusEnd = Clr As System.Drawing.Color
VBobject.BackColorFocusEnd = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.BackColorFocusEnd = Clr;
VC++OLE_COLOR object->BackColorFocusEnd = Clr;
void object->PutBackColorFocusEnd(OLE_COLOR Clr);
CHRESULT object->put_BackColorFocusEnd(OLE_COLOR Clr);

object

A SftButton object.

Clr

Defines the control's gradient fill background color when it has the input focus (combined with BackColorFocusStart). For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".

Comments

The BackColorFocusEnd property defines the control's gradient fill background color when it has the input focus (combined with BackColorFocusStart).

This property has no effect if Windows themes are used.

The FillOrientation defines the gradient fill orientation. The BackColorFocusEnd property is the ending color value (right or bottom).

If both BackColorFocusStart and BackColorFocusEnd define valid starting and ending colors, these take precedence and the BackColorFocus property has no effect. On display devices that do not support gradient fills or if fewer than 65K colors are available, the BackColorFocus property is used instead.

Examples

VB.NET

    AxSftButton1.RightToLeft = False
    AxSftButton1.Toggle = False
    ' Colors
    AxSftButton1.BackColor = SystemColors.Control
    AxSftButton1.BackColorStart = Color.Green
    AxSftButton1.BackColorEnd = Color.Blue
    AxSftButton1.BackColorFocus = SystemColors.Control
    AxSftButton1.BackColorFocusStart = Color.Red
    AxSftButton1.BackColorFocusEnd = Color.Green
    AxSftButton1.BackColorHover = SystemColors.Control
    AxSftButton1.BackColorHoverStart = Color.Yellow
    AxSftButton1.BackColorHoverEnd = Color.Cyan
    AxSftButton1.BackColorPressed = SystemColors.Control
    AxSftButton1.DarkEdgeColor = SystemColors.ControlDark
    AxSftButton1.ForeColor = Color.Black
    AxSftButton1.ForeColorGrayed = Color.Gray

VB6

    SftButton1.RightToLeft = False
    SftButton1.Toggle = False
' Colors
    SftButton1.BackColor = vbButtonFace
    SftButton1.BackColorStart = vbGreen
    SftButton1.BackColorEnd = vbBlue
    SftButton1.BackColorFocus = vbButtonFace
    SftButton1.BackColorFocusStart = vbRed
    SftButton1.BackColorFocusEnd = vbGreen
    SftButton1.BackColorHover = vbButtonFace
    SftButton1.BackColorHoverStart = vbYellow
    SftButton1.BackColorHoverEnd = vbCyan
    SftButton1.BackColorPressed = vbButtonFace
    SftButton1.DarkEdgeColor = vbButtonShadow
    SftButton1.ForeColor = vbBlack
    SftButton1.ForeColorGrayed = vbGray

C#

    axSftButton1.RightToLeft = false;
    axSftButton1.Toggle = false;
    // Colors
    axSftButton1.BackColor = SystemColors.Control;
    axSftButton1.BackColorStart = Color.Green;
    axSftButton1.BackColorEnd = Color.Blue;
    axSftButton1.BackColorFocus = SystemColors.Control;
    axSftButton1.BackColorFocusStart = Color.Red;
    axSftButton1.BackColorFocusEnd = Color.Green;
    axSftButton1.BackColorHover = SystemColors.Control;
    axSftButton1.BackColorHoverStart = Color.Yellow;
    axSftButton1.BackColorHoverEnd = Color.Cyan;
    axSftButton1.BackColorPressed = SystemColors.Control;
    axSftButton1.DarkEdgeColor = SystemColors.ControlDark;
    axSftButton1.ForeColor = Color.Black;
    axSftButton1.ForeColorGrayed = Color.Gray;

C++

    m_vButton->put_RightToLeft(VARIANT_FALSE);
    m_vButton->put_Toggle(VARIANT_FALSE);
// Colors
    m_vButton->put_BackColor(COLOR_BTNFACE|0x80000000L);
    m_vButton->put_BackColorStart(RGB(0,255,0));
    m_vButton->put_BackColorEnd(RGB(0,0,255));
    m_vButton->put_BackColorFocus(COLOR_BTNFACE|0x80000000L);
    m_vButton->put_BackColorFocusStart(RGB(255,0,0));
    m_vButton->put_BackColorFocusEnd(RGB(0,255,0));
    m_vButton->put_BackColorHover(COLOR_BTNFACE|0x80000000L);
    m_vButton->put_BackColorHoverStart(RGB(0,255,255));
    m_vButton->put_BackColorHoverEnd(RGB(255,255,0));
    m_vButton->put_BackColorPressed(COLOR_BTNFACE|0x80000000L);
    m_vButton->put_DarkEdgeColor(COLOR_BTNSHADOW|0x80000000L);
    m_vButton->put_ForeColor(RGB(0,0,0));
    m_vButton->put_ForeColorGrayed(RGB(128,128,128));

See Also SftButton Object | Object Hierarchy


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