Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectory.ActiveColumnBackColor Property

Defines the background color of the active column.

Syntax

Get

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

Put

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

object

A SftDirectory object.

Clr

Defines the background color of the active column.

Comments

The ActiveColumnBackColor property defines the background color of the active column.

The active column is the column currently sorted ascending/descending. If column sorting has not been enabled, this property has no effect.

If the ActiveColumnBackColor property is set to -1, a default background color is automatically generated, based on the settings of the BackColor property and the ForeColor property. The background color is made slightly darker (or lighter) to make the active column more noticeable. This automatic color determination is only made for display devices that support more than 256 colors.

Examples

VB.NET

AxSftDirectory1.ActiveColumnBackColor = SystemColors.Highlight
AxSftDirectory1.ActiveColumnBackColor = Color.Red
AxSftDirectory1.ActiveColumnBackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.BackColor = SystemColors.Highlight
AxSftDirectory1.ForeColor = SystemColors.HighlightText
AxSftDirectory1.BackColor = Color.Red
AxSftDirectory1.ForeColor = Color.White
AxSftDirectory1.BackColor = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColor = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.ForeColorArchiveReady = SystemColors.Highlight
AxSftDirectory1.ForeColorArchiveReady = Color.Red
AxSftDirectory1.ForeColorArchiveReady = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorCompressed = SystemColors.Highlight
AxSftDirectory1.ForeColorCompressed = Color.Red
AxSftDirectory1.ForeColorCompressed = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.ForeColorEncrypted = SystemColors.Highlight

VB6

SftDirectory1.ActiveColumnBackColor = vbHighlight
SftDirectory1.ActiveColumnBackColor = vbRed
SftDirectory1.ActiveColumnBackColor = &HFF&
SftDirectory1.BackColor = vbHighlight
SftDirectory1.ForeColor = vbHighlightText
SftDirectory1.BackColor = vbRed
SftDirectory1.ForeColor = vbWhite
SftDirectory1.BackColor = &HFF
SftDirectory1.ForeColor = &HFFFFFF
SftDirectory1.ForeColorArchiveReady = vbHighlight
SftDirectory1.ForeColorArchiveReady = vbRed
SftDirectory1.ForeColorArchiveReady = &HFF&
SftDirectory1.ForeColorCompressed = vbHighlight
SftDirectory1.ForeColorCompressed = vbRed
SftDirectory1.ForeColorCompressed = &HFF&
SftDirectory1.ForeColorEncrypted = vbHighlight

C#

axSftDirectory1.ActiveColumnBackColor = SystemColors.Highlight;
axSftDirectory1.ActiveColumnBackColor = Color.Red;
axSftDirectory1.ActiveColumnBackColor = OLECvt.ToColor(0x0000FF);
axSftDirectory1.BackColor = SystemColors.Highlight;
axSftDirectory1.ForeColor = SystemColors.HighlightText;
axSftDirectory1.BackColor = Color.Red;
axSftDirectory1.ForeColor = Color.White;
axSftDirectory1.BackColor = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColor = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.ForeColorArchiveReady = SystemColors.Highlight;
axSftDirectory1.ForeColorArchiveReady = Color.Red;
axSftDirectory1.ForeColorArchiveReady = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorCompressed = SystemColors.Highlight;
axSftDirectory1.ForeColorCompressed = Color.Red;
axSftDirectory1.ForeColorCompressed = OLECvt.ToColor(0x00000ff);
axSftDirectory1.ForeColorEncrypted = SystemColors.Highlight;

C++

ISftDirectoryPtr vDir1 = m_Dir1.GetControlUnknown();
vDir1->ActiveColumnBackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ActiveColumnBackColor = RGB(0xff, 0, 0);
vDir1->BackColor = 0x80000000L | COLOR_HIGHLIGHT;
vDir1->ForeColor = 0x80000000L | COLOR_HIGHLIGHTTEXT;
vDir1->BackColor = RGB(0xff, 0, 0);
vDir1->ForeColor = RGB(0xff, 0xff, 0xff);
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;

See Also SftDirectory Object | Object Hierarchy


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