SftBox/OCX 4.5

SftBoxDropDown.BackColor Property

Softel vdm, Inc.

Defines the drop down button's background color.

Syntax       

Get

VB.NET

Clr = object.BackColor  As UIntegerLanguage-specific information

VB

Clr = object.BackColor  As OLE_COLOR

C#.NET

uintLanguage-specific information Clr = object.BackColor;

VC++

OLE_COLOR Clr = object->BackColor;
OLE_COLOR Clr = object->GetBackColor();

C

HRESULT object->get_BackColor(OLE_COLOR* Clr);

Delphi

Clr := object.BackColor  : CardinalLanguage-specific information;

Put

VB.NET

object.BackColor = Clr  As UIntegerLanguage-specific information

VB

object.BackColor = Clr  As OLE_COLOR

C#.NET

uintLanguage-specific information object.BackColor = Clr;

VC++

OLE_COLOR object->BackColor = Clr;
void object->PutBackColor(OLE_COLOR Clr);

C

HRESULT object->put_BackColor(OLE_COLOR Clr);

Delphi

object.BackColor := Clr  : CardinalLanguage-specific information;

object

A SftBoxDropDown object.

Clr

Defines the drop down button's background color. For information about color properties, please visit the applicable section "Using SftBox/OCX with ...". Set to -1 to use the default color suitable for the current button style (DropDown.ButtonStyle) and Windows themes settings.

Comments

The BackColor property defines the drop down button's background color.

This property only takes effect if DropDown.ButtonStyle is set to constSftBoxDDStyleClassic or a drop down button image has been defined (DropDown.Image property) with a DropDown.ButtonStyle value other than constSftBoxDDStyleHover or constSftBoxDDStyleHoverNoThemes.

On Windows Vista and up, it is used to define the background color of the semi-transparent drop down button when Windows themes are used (DropDown.ButtonStyle is constSftBoxDDStyleDefault).


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com