Defines the control's background color.
Syntax
|
Get
|
|
|
VB.NET
|
Clr = object.BackColor As System.Drawing.Color
Clr = object.CtlBackColor As System.Drawing.Color
|
|
|
VB
|
Clr = object.BackColor As OLE_COLOR
|
|
|
C#.NET
|
System.Drawing.Color Clr = object.BackColor;
System.Drawing.Color 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 : TColor;
|
|
Put
|
|
|
VB.NET
|
object.BackColor = Clr As System.Drawing.Color
object.CtlBackColor = Clr As System.Drawing.Color
|
|
|
VB
|
object.BackColor = Clr As OLE_COLOR
|
|
|
C#.NET
|
System.Drawing.Color object.BackColor = Clr;
System.Drawing.Color 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 : TColor;
|
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