SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the cell's background color, combined with BackColor creating a gradient fill.
Get
Put
object
A SftTreeCell object.
Clr
Defines the cell's background color, combined with BackColor creating a gradient fill. -1 indicates that there is no defined color and the default colors are used. For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".
The BackColorEnd property defines the cell's background color, combined with Cell.BackColor creating a gradient fill.
The Cell.BackColor property can be used to define the cell's background color, combined with BackColorEnd creating a gradient fill. The orientation of the gradient fill can be defined using the Cell.BackColorOrientation property. If Cell.BackColor is not defined, BackColorEnd is ignored and has no effect.
AxSftTree1.get_Item(I).Level = 1
AxSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.verticalDefaultOrientationSftTree
AxSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree
AxSftTree1.get_Cell(I, 0).ProgressColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(128, 128, 0)) And &HFFFFFFFF&)
AxSftTree1.get_Cell(I, 0).ProgressColorEnd = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(255, 255, 0)) And &HFFFFFFFF&)
AxSftTree1.get_Cell(I, 0).ProgressMax = 150 ' maximum value 0-150
AxSftTree1.get_Cell(I, 0).ProgressValue = 40 ' current value
AxSftTree1.get_Cell(I, 0).BackColor = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromKnownColor(KnownColor.Window)) And &HFFFFFFFF&)
AxSftTree1.get_Cell(I, 0).BackColorEnd = Convert.ToUInt32(ColorTranslator.ToOle(Color.FromArgb(255, 0, 0)) And &HFFFFFFFF&)
AxSftTree1.get_Cell(I, 0).BackColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree
ItemIndex = AxSftTree1.Items.Add("Supported Picture Types")
AxSftTree1.get_Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images.."
' add GDI+ samples
Set cellObj = .Cell(I, 0)
cellObj.ProgressColorOrientation = verticalDefaultOrientationSftTree
cellObj.ProgressStyle = smallDefaultProgressStyleSftTree
cellObj.ProgressColor = &H8080&
cellObj.ProgressColorEnd = &HFFFF&
cellObj.ProgressMax = 150 ' maximum value 0-150
cellObj.ProgressValue = 40 ' current value
cellObj.BackColor = &H80000005
cellObj.BackColorEnd = &HFF&
cellObj.BackColorOrientation = horizontalDefaultOrientationSftTree
' Picture Types
ItemIndex = .Items.Add("Supported Picture Types")
.Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+ images, bitmaps, icons, ImageLists and also offers numerous built-in images."
axSftTree1.get_Item(I).Level = 1;
axSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.verticalDefaultOrientationSftTree;
axSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree;
axSftTree1.get_Cell(I, 0).ProgressColor = (uint) ColorTranslator.ToOle(Color.FromArgb(128, 128, 0));
axSftTree1.get_Cell(I, 0).ProgressColorEnd = (uint) ColorTranslator.ToOle(Color.FromArgb(255, 255, 0));
axSftTree1.get_Cell(I, 0).ProgressMax = 150; // maximum value 0-150
axSftTree1.get_Cell(I, 0).ProgressValue = 40; // current value
axSftTree1.get_Cell(I, 0).BackColor = (uint) ColorTranslator.ToOle(Color.FromKnownColor(KnownColor.Window));
axSftTree1.get_Cell(I, 0).BackColorEnd = (uint)ColorTranslator.ToOle(Color.FromArgb(255, 0, 0));
axSftTree1.get_Cell(I, 0).BackColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree;
ItemIndex = axSftTree1.Items.Add("Supported Picture Types");
axSftTree1.get_Cell(ItemIndex, 1).Text = "SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images.";
// add GDI+ samples
m_vTree->Item[i]->Level = 1;
m_vTree->Cell[i][0]->ProgressColorOrientation = verticalDefaultOrientationSftTree;
m_vTree->Cell[i][0]->ProgressStyle = smallDefaultProgressStyleSftTree;
m_vTree->Cell[i][0]->ProgressColor = RGB(128,128,0);
m_vTree->Cell[i][0]->ProgressColorEnd = RGB(255,255,0);
m_vTree->Cell[i][0]->ProgressMax = 150; // maximum value 0-150
m_vTree->Cell[i][0]->ProgressValue = 40; // current value
m_vTree->Cell[i][0]->BackColor = 0x80000000L | COLOR_WINDOW;
m_vTree->Cell[i][0]->BackColorEnd = RGB(255, 0, 0);
m_vTree->Cell[i][0]->BackColorOrientation = horizontalDefaultOrientationSftTree;
ItemIndex = m_vTree->Items->Add("Supported Picture Types");
m_vTree->Cell[ItemIndex][1]->Text = _T("SftTree/OCX supports numerous image types, such as GDI+, bitmaps, icons, ImageLists and also offers numerous built-in images.");
// add GDI+ samples
See Also SftTreeCell Object | Object Hierarchy