HeaderPane
Main
Hide
Share Link
Print

ForeColorPressed Property, SftButton Object

Defines the control's text color when pressed.

Syntax

Get

C#System.Drawing.Color Clr = object.ForeColorPressed;
VB.NETClr = object.ForeColorPressed As System.Drawing.Color
C++OLE_COLOR Clr = object->ForeColorPressed;
OLE_COLOR Clr = object->GetForeColorPressed();
CHRESULT object->get_ForeColorPressed(OLE_COLOR* Clr);
VBClr = object.ForeColorPressed As OLE_COLOR

Put

C#System.Drawing.Color object.ForeColorPressed = Clr;
VB.NETobject.ForeColorPressed = Clr As System.Drawing.Color
C++OLE_COLOR object->ForeColorPressed = Clr;
void object->PutForeColorPressed(OLE_COLOR Clr);
CHRESULT object->put_ForeColorPressed(OLE_COLOR Clr);
VBobject.ForeColorPressed = Clr As OLE_COLOR

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.

See Also SftButton Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.