HeaderPane
Main
Hide

SftButton/OCX 4.0 - ActiveX Button Control

Share Link
Print

ForeColorGrayed Property, SftButton Object

Defines the control's text color when disabled.

Syntax

Get

VB.NETClr = object.ForeColorGrayed As System.Drawing.Color
VBClr = object.ForeColorGrayed As OLE_COLOR
C#.NETSystem.Drawing.Color Clr = object.ForeColorGrayed;
VC++OLE_COLOR Clr = object->ForeColorGrayed;
OLE_COLOR Clr = object->GetForeColorGrayed();
CHRESULT object->get_ForeColorGrayed(OLE_COLOR* Clr);

Put

VB.NETobject.ForeColorGrayed = Clr As System.Drawing.Color
VBobject.ForeColorGrayed = Clr As OLE_COLOR
C#.NETSystem.Drawing.Color object.ForeColorGrayed = Clr;
VC++OLE_COLOR object->ForeColorGrayed = Clr;
void object->PutForeColorGrayed(OLE_COLOR Clr);
CHRESULT object->put_ForeColorGrayed(OLE_COLOR Clr);

object

A SftButton object.

Clr

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

Comments

The ForeColorGrayed property defines the control's text color when disabled.

If Windows themes are used, the ForeColorGrayed 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 and the drop down arrow. If the control is enabled, the foreground colors defined using the ForeColor and ForeColorDownArrow properties are used instead.

See Also SftButton Object | Object Hierarchy


Last Updated 08/23/2026 - (email)
© 2026 Softel vdm, Inc.