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
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
SftTree/NET 2.0 - Tree Control
Defines the item style.
Get
| VB.NET | Style = object.Style As SftTreeItemStyleConstants |
| VB | Style = object.Style As SftTreeItemStyleConstants |
| C#.NET | SftTreeItemStyleConstants Style = object.Style; |
| VC++ | enum SftTreeItemStyleConstants Style = object->Style; enum SftTreeItemStyleConstants Style = object->GetStyle(); |
| C | HRESULT object->get_Style(enum SftTreeItemStyleConstants* Style); |
Put
| VB.NET | object.Style = Style As SftTreeItemStyleConstants |
| VB | object.Style = Style As SftTreeItemStyleConstants |
| C#.NET | SftTreeItemStyleConstants object.Style = Style; |
| VC++ | enum SftTreeItemStyleConstants object->Style = Style; void object->PutStyle(enum SftTreeItemStyleConstants Style); |
| C | HRESULT object->put_Style(enum SftTreeItemStyleConstants Style); |
object
A SftTreeItems object.
Style
Defines the item style.
| Style | Value | Description |
|---|---|---|
| itemSftTreeFixed | 0 | All items in the tree control have the same height. |
| itemSftTreeVariable | 1 | The height of each item in the tree control may vary based on item attributes, such as fonts used, graphics sizes, etc. |
The Style property defines the item style.
It determines whether fixed height or variable height items are used.
Private Sub AddColor(ByVal Text As String, ByVal Clr As Color)
Dim i As Integer
i = AxSftTree1.Items.Add(Text)
AxSftTree1.get_Item(i).Level = 2
UpdateColor(i, Clr, SftTreeHAlignConstants.halignSftTreeRight)
End Sub
Private Sub UpdateBuiltinImage(ByVal ItemIndex As Integer, ByVal Style As SftPictureImageConstants, ByVal wPix As Integer, ByVal hPix As Integer, ByVal Align As SftTreeHAlignConstants)
Dim C As SftTreeCell
C = AxSftTree1.get_Cell(ItemIndex, 0)
C.Image.Appearance = Style
C.Image.Width = wPix
C.Image.Height = hPix
C.ImageHAlign = Align
PropagateImage(ItemIndex, C.Image)
End Sub
NoFocusStyle = 0
NoSelection = 0
RubberbandSelection= 1
SelectBackColor = -2147483635
SelectBackColorNoFocus= -2147483633
SelectForeColor = -2147483634
SelectForeColorNoFocus= -2147483630
ShadowColor = -2147483632
Style = 1
ScrollTips = 1
SelectionArea = 1
SelectStyle = 0
ShowFocusRectangle= 1
ToolTipAlways = 0
ToolTipBackColor= -1
ToolTipForeColor= -1
private void AddColor(string Text, Color Clr)
{
int i;
i = axSftTree1.Items.Add(Text);
axSftTree1.get_Item(i).Level = 2;
UpdateColor(i, Clr, SftTreeHAlignConstants.halignSftTreeRight);
}
private void UpdateBuiltinImage(int ItemIndex, SftPictureImageConstants Style, int wPix, int hPix, SftTreeHAlignConstants Align)
{
SftTreeCell C = axSftTree1.get_Cell(ItemIndex, 0);
C.Image.Appearance = Style;
C.Image.Width = wPix;
C.Image.Height = hPix;
C.ImageHAlign = Align;
PropagateImage(ItemIndex, C.Image);See Also SftTreeItems Object | Object Hierarchy
