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 progress bar's gradient fill orientation.
Get
| VB.NET | Style = object.ProgressColorOrientation As SftTreeOrientationDefaultConstants |
| VB | Style = object.ProgressColorOrientation As SftTreeOrientationDefaultConstants |
| C#.NET | SftTreeOrientationDefaultConstants Style = object.ProgressColorOrientation; |
| VC++ | enum SftTreeOrientationDefaultConstants Style = object->ProgressColorOrientation; enum SftTreeOrientationDefaultConstants Style = object->GetProgressColorOrientation(); |
| C | HRESULT object->get_ProgressColorOrientation(enum SftTreeOrientationDefaultConstants* Style); |
Put
| VB.NET | object.ProgressColorOrientation = Style As SftTreeOrientationDefaultConstants |
| VB | object.ProgressColorOrientation = Style As SftTreeOrientationDefaultConstants |
| C#.NET | SftTreeOrientationDefaultConstants object.ProgressColorOrientation = Style; |
| VC++ | enum SftTreeOrientationDefaultConstants object->ProgressColorOrientation = Style; void object->PutProgressColorOrientation(enum SftTreeOrientationDefaultConstants Style); |
| C | HRESULT object->put_ProgressColorOrientation(enum SftTreeOrientationDefaultConstants Style); |
object
A SftTreeCell object.
Style
Defines the progress bar's gradient fill orientation.
| Name | Value | Description |
|---|---|---|
| defaultOrientationSftTree | -1 | (Default) - The default orientation defined using Column.ProgressColorOrientation is used. |
| horizontalDefaultOrientationSftTree | 0 | Horizontal - The gradient fill orientation is horizontal, starting at the left using Cell.ProgressColor and ending at the right edge of the cell using Cell.ProgressColorEnd (reversed when using RightToLeft rendering). |
| verticalDefaultOrientationSftTree | 1 | Vertical - The gradient fill orientation is vertical, starting at the top using Cell.ProgressColor and ending at the bottom using Cell.ProgressColorEnd. |
The ProgressColorOrientation property defines the progress bar's gradient fill orientation.
A progress bar is only shown for the cell if its Cell.ProgressMax property is set to a value other than 0.
Dim I As Integer
I = AxSftTree1.Items.Add("Progress Bar - Full Size")
AxSftTree1.get_Item(I).Level = 1
AxSftTree1.get_Cell(I, 0).ProgressMax = 100 ' maximum value 0-100
AxSftTree1.get_Cell(I, 0).ProgressValue = 33 ' current value
I = AxSftTree1.Items.Add("Progress Bar - Partial")
AxSftTree1.get_Item(I).Level = 1
AxSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree
AxSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree
AxSftTree1.get_Cell(I, 0).ProgressMax = 200 ' maximum value 0-200
AxSftTree1.get_Cell(I, 0).ProgressValue = 33 ' current value
I = AxSftTree1.Items.Add("Progress Bar - with gradient fill")
AxSftTree1.get_Item(I).Level = 1
AxSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree
I = .Items.Add("Progress Bar - Full Size")
.Item(I).Level = 1
.Cell(I, 0).ProgressMax = 100 ' maximum value 0-100
.Cell(I, 0).ProgressValue = 33 ' current value
I = .Items.Add("Progress Bar - Partial")
.Item(I).Level = 1
.Cell(I, 0).ProgressColorOrientation = horizontalDefaultOrientationSftTree
.Cell(I, 0).ProgressStyle = smallDefaultProgressStyleSftTree
.Cell(I, 0).ProgressMax = 200 ' maximum value 0-200
.Cell(I, 0).ProgressValue = 33 ' current value
I = .Items.Add("Progress Bar - with gradient fill")
.Item(I).Level = 1
.Cell(I, 0).ProgressColorOrientation = horizontalDefaultOrientationSftTree
.Cell(I, 0).ProgressStyle = smallDefaultProgressStyleSftTree
int I = axSftTree1.Items.Add("Progress Bar - Full Size");
axSftTree1.get_Item(I).Level = 1;
axSftTree1.get_Cell(I, 0).ProgressMax = 100; // maximum value 0-100
axSftTree1.get_Cell(I, 0).ProgressValue = 33; // current value
I = axSftTree1.Items.Add("Progress Bar - Partial");
axSftTree1.get_Item(I).Level = 1;
axSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree;
axSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree;
axSftTree1.get_Cell(I, 0).ProgressMax = 200; // maximum value 0-200
axSftTree1.get_Cell(I, 0).ProgressValue = 33; // current value
I = axSftTree1.Items.Add("Progress Bar - with gradient fill");
axSftTree1.get_Item(I).Level = 1;
axSftTree1.get_Cell(I, 0).ProgressColorOrientation = SftTreeOrientationDefaultConstants.horizontalDefaultOrientationSftTree;
axSftTree1.get_Cell(I, 0).ProgressStyle = SftTreeProgressStyleDefaultConstants.smallDefaultProgressStyleSftTree;
long i = m_vTree->Items->Add("Progress Bar - Full Size");
m_vTree->Item[i]->Level = 1;
m_vTree->Cell[i][0]->ProgressMax = 100; // maximum value 0-100
m_vTree->Cell[i][0]->ProgressValue = 33; // current value
i = m_vTree->Items->Add("Progress Bar - Partial");
m_vTree->Item[i]->Level = 1;
m_vTree->Cell[i][0]->ProgressColorOrientation = horizontalDefaultOrientationSftTree;
m_vTree->Cell[i][0]->ProgressStyle = smallDefaultProgressStyleSftTree;
m_vTree->Cell[i][0]->ProgressMax = 200; // maximum value 0-200
m_vTree->Cell[i][0]->ProgressValue = 33; // current value
i = m_vTree->Items->Add("Progress Bar - with gradient fill");
m_vTree->Item[i]->Level = 1;
m_vTree->Cell[i][0]->ProgressColorOrientation = horizontalDefaultOrientationSftTree;
m_vTree->Cell[i][0]->ProgressStyle = smallDefaultProgressStyleSftTree;See Also SftTreeCell Object | Object Hierarchy
