SftButton/OCX 2.5

SftButton.ForeColor Property

Softel vdm, Inc.

Defines the control's text color.

Syntax       

Get

VB.NET

Clr = object.ForeColor  As System.Drawing.ColorLanguage-specific information
Clr = object.CtlForeColor  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.ForeColor  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.ForeColor;
System.Drawing.ColorLanguage-specific information Clr = object.CtlForeColor;

VC++

OLE_COLOR Clr = object->ForeColor;
OLE_COLOR Clr = object->GetForeColor();

C

HRESULT object->get_ForeColor(OLE_COLOR* Clr);

Delphi

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

Put

VB.NET

object.ForeColor = Clr  As System.Drawing.ColorLanguage-specific information
object.CtlForeColor = Clr  As System.Drawing.ColorLanguage-specific information

VB

object.ForeColor = Clr  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information object.ForeColor = Clr;
System.Drawing.ColorLanguage-specific information object.CtlForeColor = Clr;

VC++

OLE_COLOR object->ForeColor = Clr;
void object->PutForeColor(OLE_COLOR Clr);

C

HRESULT object->put_ForeColor(OLE_COLOR Clr);

Delphi

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

object

A SftButton object.

Clr

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

Comments

The ForeColor property defines the control's text color.

If Windows themes are used, the ForeColor property has no effect, unless UseThemes is set to 2 - Yes (Exclude Text).

The defined color is used to display the text defined using the Text property. If the button is pressed, the color ForeColorPressed is used instead. If the control is disabled (see Enabled property), the foreground color defined using the ForeColorGrayed property is used instead.

The foreground color of the drop down arrow is defined using the ForeColorDownArrow property.


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