Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.SelectForeColor Property

Defines the foreground color of selected files/folders when the control has the focus.

Syntax

Get

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

Put

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

object

A SftDirectory object.

Clr

Defines the foreground color of selected files/folders when the control has the focus.

Comments

The SelectForeColor property defines the foreground color of selected files/folders when the control has the focus.

Examples

VB.NET

AxSftDirectory1.ForeColorHidden = Color.Red
AxSftDirectory1.ForeColorHidden = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorReadOnly = SystemColors.Highlight
AxSftDirectory1.ForeColorReadOnly = Color.Red
AxSftDirectory1.ForeColorReadOnly = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectBackColor = SystemColors.Highlight
AxSftDirectory1.SelectBackColor = Color.Red
AxSftDirectory1.SelectBackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectForeColor = SystemColors.HighlightText
AxSftDirectory1.SelectForeColor = Color.White
AxSftDirectory1.SelectForeColor = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight
AxSftDirectory1.SelectBackColorNoFocus = Color.Red
AxSftDirectory1.SelectBackColorNoFocus = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText
AxSftDirectory1.SelectForeColorNoFocus = Color.White

VB6

SftDirectory1.ForeColorEncrypted = &HFF&
SftDirectory1.ForeColorHidden = vbHighlight
SftDirectory1.ForeColorHidden = vbRed
SftDirectory1.ForeColorHidden = &HFF&
SftDirectory1.ForeColorReadOnly = vbHighlight
SftDirectory1.ForeColorReadOnly = vbRed
SftDirectory1.ForeColorReadOnly = &HFF&
SftDirectory1.SelectBackColor = vbHighlight
SftDirectory1.SelectForeColor = vbHighlightText
SftDirectory1.SelectBackColor = vbRed
SftDirectory1.SelectForeColor = vbWhite
SftDirectory1.SelectBackColor = &HFF
SftDirectory1.SelectForeColor = &HFFFFFF
SftDirectory1.SelectBackColorNoFocus = vbHighlight
SftDirectory1.SelectForeColorNoFocus = vbHighlightText
SftDirectory1.SelectBackColorNoFocus = vbRed

C#

axSftDirectory1.ForeColorHidden = Color.Red;
axSftDirectory1.ForeColorHidden = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorReadOnly = SystemColors.Highlight;
axSftDirectory1.ForeColorReadOnly = Color.Red;
axSftDirectory1.ForeColorReadOnly = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectBackColor = SystemColors.Highlight;
axSftDirectory1.SelectBackColor = Color.Red;
axSftDirectory1.SelectBackColor = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectForeColor = SystemColors.HighlightText;
axSftDirectory1.SelectForeColor = Color.White;
axSftDirectory1.SelectForeColor = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight;
axSftDirectory1.SelectBackColorNoFocus = Color.Red;
axSftDirectory1.SelectBackColorNoFocus = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText;
axSftDirectory1.SelectForeColorNoFocus = Color.White;

C++

vDir1->ForeColorCompressed = RGB(0xff, 0, 0);
vDir1->ForeColorEncrypted = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorEncrypted = RGB(0xff, 0, 0);
vDir1->ForeColorHidden = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorHidden = RGB(0xff, 0, 0);
vDir1->ForeColorReadOnly = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorReadOnly = RGB(0xff, 0, 0);
vDir1->SelectBackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->SelectForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->SelectBackColor = RGB(0xff, 0, 0);
vDir1->SelectForeColor = RGB(0xff, 0xff, 0xff);
vDir1->SelectBackColorNoFocus = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->SelectForeColorNoFocus = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->SelectBackColorNoFocus = RGB(0xff, 0, 0);
vDir1->SelectForeColorNoFocus = RGB(0xff, 0xff, 0xff);
vDir1->ColumnEntry[0]->BackColor = 0x80000000L | COLOR_HIGHLIGHT;

See Also SftDirectory Object | Object Hierarchy


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