Hide

SftDirectory 3.5 - ActiveX File/Folder Control

Display
Print

SftDirectoryColumn.SelectBackColor Property

Defines the default background color for all selected cells in this column.

Syntax

Get

VB.NETClr = object.SelectBackColor As UInteger
VBClr = object.SelectBackColor As OLE_COLOR
C#.NETuint Clr = object.SelectBackColor;
VC++OLE_COLOR Clr = object->SelectBackColor;
OLE_COLOR Clr = object->GetSelectBackColor();
CHRESULT object->get_SelectBackColor(OLE_COLOR* Clr);

Put

VB.NETobject.SelectBackColor = Clr As UInteger
VBobject.SelectBackColor = Clr As OLE_COLOR
C#.NETuint object.SelectBackColor = Clr;
VC++OLE_COLOR object->SelectBackColor = Clr;
void object->PutSelectBackColor(OLE_COLOR Clr);
CHRESULT object->put_SelectBackColor(OLE_COLOR Clr);

object

A SftDirectoryColumn object.

Clr

Defines the default background color for all selected cells in this column.

Comments

The SelectBackColor property defines the default background color for all selected cells in this column.

Only the first displayed column uses the SelectBackColor property for folders that are currently selected.

Examples

VB.NET

AxSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight
AxSftDirectory1.SelectBackColorNoFocus = Color.Red
AxSftDirectory1.SelectBackColorNoFocus = ColorTranslator.FromWin32(&HFF&)
AxSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText
AxSftDirectory1.SelectForeColorNoFocus = Color.White
AxSftDirectory1.SelectForeColorNoFocus = ColorTranslator.FromWin32(&HFFFFFF&)
AxSftDirectory1.get_ColumnEntry(0).BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&)
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))

VB6

SftDirectory1.SelectBackColorNoFocus = vbHighlight
SftDirectory1.SelectForeColorNoFocus = vbHighlightText
SftDirectory1.SelectBackColorNoFocus = vbRed
SftDirectory1.SelectForeColorNoFocus = vbWhite
SftDirectory1.SelectBackColorNoFocus = &HFF
SftDirectory1.SelectForeColorNoFocus = &HFFFFFF
SftDirectory1.ColumnEntry(0).BackColor = vbHighlight
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

C#

axSftDirectory1.SelectBackColorNoFocus = SystemColors.Highlight;
axSftDirectory1.SelectBackColorNoFocus = Color.Red;
axSftDirectory1.SelectBackColorNoFocus = OLECvt.ToColor(0x00000ff);
axSftDirectory1.SelectForeColorNoFocus = SystemColors.HighlightText;
axSftDirectory1.SelectForeColorNoFocus = Color.White;
axSftDirectory1.SelectForeColorNoFocus = OLECvt.ToColor(0x0ffffff);
axSftDirectory1.get_ColumnEntry(0).BackColor = OLECvt.ToOleColor(SystemColors.Highlight);
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);

C++

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;
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);

See Also SftDirectoryColumn Object | Object Hierarchy


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