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
Returns a SftTreeColumn object for a given column.
Get
VB.NET | refColumnObj = object.get_Column(ByVal ColIndex As Short) As SftTreeColumn |
VB | Set refColumnObj = object.Column(ByVal ColIndex As Integer) As SftTreeColumn |
C#.NET | SftTreeColumn refColumnObj = object.get_Column(short ColIndex); |
VC++ | ISftTreeColumn* refColumnObj = object->Column[short ColIndex]; ISftTreeColumn* refColumnObj = object->GetColumn(short ColIndex); |
C | HRESULT object->get_Column(short ColIndex, ISftTreeColumn** refColumnObj); |
object
ColIndex
The zero-based column number.
refColumnObj
Returns a SftTreeColumn object for a given column.
The Column property returns a SftTreeColumn object for a given column.
The SftTreeColumn object represents one column in a SftTree/OCX control. Numerous column-specific properties and methods can be accessed using the returned object refColumnObj.
Certain default properties and behavior for all columns can be defined using the SftTreeColumns object.
Dim f As FormSmall = New FormSmall() AxSftTree1.get_Item(6).Cell(1).AttachContentWindow(f.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize) AxSftTree1.get_Item(6).Cell(1).Text = "" AxSftTree1.RowHeaders.MakeOptimal() ' Make row header width optimal, so text and pictures are not clipped horizontally. AxSftTree1.ColumnsObj.MakeOptimal() ' Make all columns optimal ' triple the size of the last column AxSftTree1.get_Column(1).WidthPix = AxSftTree1.get_Column(1).WidthPix * 3 AxSftTree1.Items.RecalcHorizontalExtent() ' Update horizontal scrollbar AxSftTree1.Items.Current = 0 ' select the first item AxSftTree1.get_Item(0).Selected = True AxSftTree1.Dock = DockStyle.Fill ' Maximize the main window
SftTree1.ColumnsObj.MakeOptimal ' Make all columns optimal ' Form Set SavedForm = New Form2 SftTree1.Item(6).Cell(1).AttachContentWindow SavedForm.hWnd, contentWindowSftTreeKeepSize SftTree1.Item(6).Cell(1).Text = "" ' triple the size of the last column SftTree1.Column(1).WidthPix = SftTree1.Column(1).WidthPix * 3 SftTree1.Items.RecalcHorizontalExtent ' Update horizontal scrollbar SftTree1.Items.Current = 0 ' select the first item SftTree1.Item(0).Selected = True Me.WindowState = 2 ' Maximize the main window
FormSmall f = new FormSmall(); axSftTree1.get_Item(6).get_Cell(1).AttachContentWindow((long)f.Handle, SftTreeContentWindowStyleConstants.contentWindowSftTreeKeepSize); axSftTree1.get_Item(6).get_Cell(1).Text = ""; axSftTree1.RowHeaders.MakeOptimal(); // Make row header width optimal, so text and pictures are not clipped horizontally. axSftTree1.ColumnsObj.MakeOptimal(); // Make all columns optimal // triple the size of the last column axSftTree1.get_Column(1).WidthPix = axSftTree1.get_Column(1).WidthPix * 3; axSftTree1.Items.RecalcHorizontalExtent(); // Update horizontal scrollbar axSftTree1.Items.Current = 0; // select the first item axSftTree1.get_Item(0).Selected = true; axSftTree1.Dock = DockStyle.Fill; // Maximize the main window
m_vTree->Item[6]->Cell[1]->Text = _T(""); m_vTree->Item[6]->Cell[1]->AttachContentWindow((int) m_SimpleDialog.m_hWnd, contentWindowSftTreeKeepSize); m_vTree->RowHeaders->MakeOptimal(); // Make row header width optimal, so text and pictures are not clipped horizontally. m_vTree->ColumnsObj->MakeOptimal(); // Make all columns optimal // triple the size of the last column m_vTree->Column[1]->WidthPix = m_vTree->Column[1]->WidthPix * 3; m_vTree->Items->RecalcHorizontalExtent(); // Update horizontal scrollbar m_vTree->Items->Current = 0; // select the first item m_vTree->Item[0]->Selected = VARIANT_TRUE; SendMessage(WM_SYSCOMMAND, SC_MAXIMIZE, 0);
See Also SftTree Object | Object Hierarchy