Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.ForeColorReadOnly Property

Defines the foreground color of read/only files/folders.

Syntax

Get

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

Put

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

object

A SftDirectory object.

Clr

Defines the foreground color of read/only files/folders.

Comments

The ForeColorReadOnly property defines the foreground color of read/only files/folders.

If a file/folder is read/only, the foreground color defined using the ForeColorReadOnly property is used to display the file/folder's text. The Folder.ForeColor property overrides a file/folder's foreground color.

Examples

VB.NET

AxSftDirectory1.ForeColorCompressed = Color.Red
AxSftDirectory1.ForeColorCompressed = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorEncrypted = SystemColors.Highlight
AxSftDirectory1.ForeColorEncrypted = Color.Red
AxSftDirectory1.ForeColorEncrypted = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorHidden = SystemColors.Highlight
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

VB6

SftDirectory1.ForeColorCompressed = vbRed
SftDirectory1.ForeColorCompressed = &HFF&
SftDirectory1.ForeColorEncrypted = vbHighlight
SftDirectory1.ForeColorEncrypted = vbRed
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

C#

axSftDirectory1.ForeColorCompressed = Color.Red;
axSftDirectory1.ForeColorCompressed = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorEncrypted = SystemColors.Highlight;
axSftDirectory1.ForeColorEncrypted = Color.Red;
axSftDirectory1.ForeColorEncrypted = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorHidden = SystemColors.Highlight;
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;

C++

vDir1->ForeColorArchiveReady = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColorArchiveReady = RGB(0xff, 0, 0);
vDir1->ForeColorCompressed = 0x80000000L | COLOR_HIGHLIGHT;
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;

See Also SftDirectory Object | Object Hierarchy


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