SftButton/OCX 2.5

SftButton.ForeColorPressed Property

Softel vdm, Inc.

Defines the control's text color when pressed.

Syntax       

Get

VB.NET

Clr = object.ForeColorPressed  As System.Drawing.ColorLanguage-specific information

VB

Clr = object.ForeColorPressed  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information Clr = object.ForeColorPressed;

VC++

OLE_COLOR Clr = object->ForeColorPressed;
OLE_COLOR Clr = object->GetForeColorPressed();

C

HRESULT object->get_ForeColorPressed(OLE_COLOR* Clr);

Delphi

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

Put

VB.NET

object.ForeColorPressed = Clr  As System.Drawing.ColorLanguage-specific information

VB

object.ForeColorPressed = Clr  As OLE_COLOR

C#.NET

System.Drawing.ColorLanguage-specific information object.ForeColorPressed = Clr;

VC++

OLE_COLOR object->ForeColorPressed = Clr;
void object->PutForeColorPressed(OLE_COLOR Clr);

C

HRESULT object->put_ForeColorPressed(OLE_COLOR Clr);

Delphi

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

object

A SftButton object.

Clr

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

Comments

The ForeColorPressed property defines the control's text color when pressed.

If Windows themes are used, the ForeColorPressed 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 released, the color ForeColor is used instead. If the control is disabled (see Enabled property), the foreground color defined using the ForeColorGrayed property is used instead.


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