SftButton/OCX 2.5

SftButton.BackColor Property

Softel vdm, Inc.

Defines the control's background color.

Syntax       

Get

VB.NET

Clr = object.BackColor  As System.Drawing.ColorLanguage-specific information
Clr = object.CtlBackColor  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.BackColor  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.BackColor;
System.Drawing.ColorLanguage-specific information Clr = object.CtlBackColor;

VC++

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

C

HRESULT object->get_BackColor(OLE_COLOR* Clr);

Delphi

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

Put

VB.NET

object.BackColor = Clr  As System.Drawing.ColorLanguage-specific information
object.CtlBackColor = Clr  As System.Drawing.ColorLanguage-specific information

VB

object.BackColor = Clr  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information object.BackColor = Clr;
System.Drawing.ColorLanguage-specific information object.CtlBackColor = 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  : TColorLanguage-specific information;

object

A SftButton object.

Clr

Defines the control's background color. For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".

Comments

The BackColor property defines the control's background color.

This property has no effect if Windows themes are used.

The defined color is used for the entire control. If the button control has the input focus, the BackColorFocus color is used instead. If the button or drop down button is pressed, the BackColorPressed color is used instead for the pressed portion. If the mouse hovers over the control, the color defined using BackColorHover is used.

If both BackColorStart and BackColorEnd define valid starting and ending colors, these take precedence and the BackColor property has no effect.


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