Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectoryHeaders.GrayedColor Property

Defines the foreground color used for the column headers when disabled.

Syntax

Get

VB.NETClr = object.GrayedColor As UInteger
VBClr = object.GrayedColor As OLE_COLOR
C#.NETuint Clr = object.GrayedColor;
VC++OLE_COLOR Clr = object->GrayedColor;
OLE_COLOR Clr = object->GetGrayedColor();
CHRESULT object->get_GrayedColor(OLE_COLOR* Clr);

Put

VB.NETobject.GrayedColor = Clr As UInteger
VBobject.GrayedColor = Clr As OLE_COLOR
C#.NETuint object.GrayedColor = Clr;
VC++OLE_COLOR object->GrayedColor = Clr;
void object->PutGrayedColor(OLE_COLOR Clr);
CHRESULT object->put_GrayedColor(OLE_COLOR Clr);

object

A SftDirectoryHeaders object.

Clr

Defines the foreground color used for the column headers when disabled.

Comments

The GrayedColor property defines the foreground color used for the column headers when disabled.

All disabled column headers use the same color.

The GrayedColor property has no effect if Windows themes are used.

Examples

VB.NET

AxSftDirectory1.get_ColumnEntry(0).ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&)
AxSftDirectory1.get_ColumnEntry(0).SelectBackColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.White))
AxSftDirectory1.get_ColumnEntry(0).SelectForeColor = Convert.ToUInt32(&H0&)
AxSftDirectory1.CurrentFolder.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Control) And &HFFFFFFFF&)
AxSftDirectory1.CurrentFolder.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Black))
AxSftDirectory1.CurrentFolder.ForeColor = Convert.ToUInt32(&H0&)
AxSftDirectory1.Headers.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&)
AxSftDirectory1.Headers.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&)
AxSftDirectory1.Headers.GrayedColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Gray))
AxSftDirectory1.Headers.DarkEdgeColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.Gray))
AxSftDirectory1.Headers.LightEdgeColor = Convert.ToUInt32(&HFF&)

VB6

SftDirectory1.ColumnEntry(0).ForeColor = vbHighlightText
SftDirectory1.ColumnEntry(0).SelectBackColor = vbWhite
SftDirectory1.ColumnEntry(0).SelectForeColor = &H0
SftDirectory1.CurrentFolder.BackColor = vbButtonFace
SftDirectory1.CurrentFolder.ForeColor = vbBlack
SftDirectory1.CurrentFolder.ForeColor = &H0
SftDirectory1.Headers.BackColor = vbHighlight
SftDirectory1.Headers.ForeColor = vbHighlightText
SftDirectory1.Headers.GrayedColor = vbGray
SftDirectory1.Headers.DarkEdgeColor = vbGray
SftDirectory1.Headers.LightEdgeColor = &HFF

C#

axSftDirectory1.get_ColumnEntry(0).ForeColor = OLECvt.ToOleColor(SystemColors.HighlightText);
axSftDirectory1.get_ColumnEntry(0).SelectBackColor = OLECvt.ToOleColor(Color.White);
axSftDirectory1.get_ColumnEntry(0).SelectForeColor = 0x000000;
axSftDirectory1.CurrentFolder.BackColor = OLECvt.ToOleColor(SystemColors.Control);
axSftDirectory1.CurrentFolder.ForeColor = OLECvt.ToOleColor(Color.Black);
axSftDirectory1.CurrentFolder.ForeColor = 0x000000;
axSftDirectory1.Headers.BackColor = OLECvt.ToOleColor(SystemColors.Highlight);
axSftDirectory1.Headers.ForeColor = OLECvt.ToOleColor(Color.Black);
axSftDirectory1.Headers.GrayedColor = OLECvt.ToOleColor(Color.Gray);
axSftDirectory1.Headers.DarkEdgeColor = OLECvt.ToOleColor(Color.Gray);
axSftDirectory1.Headers.LightEdgeColor = 0x0000ff;

C++

vDir1->ColumnEntry[0]->BackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ColumnEntry[0]->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->ColumnEntry[0]->SelectBackColor = RGB(0xff, 0xff, 0xff);
vDir1->ColumnEntry[0]->SelectForeColor = RGB(0, 0, 0);
vDir1->CurrentFolder->BackColor = 0x80000000L | COLOR_BTNFACE;
vDir1->CurrentFolder->ForeColor = RGB(0,0,0);
vDir1->Headers->BackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->Headers->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->Headers->GrayedColor = RGB(0xc0, 0xc0, 0xc0);
vDir1->Headers->DarkEdgeColor = RGB(0xc0, 0xc0, 0xc0);
vDir1->Headers->LightEdgeColor = RGB(0xff, 0, 0);

See Also SftDirectoryHeaders Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.