# SftTree/OCX 8.0 — Guide > SftTree/OCX is an ActiveX control for the Windows™ operating system, offering easy to use multi-line, multi-column, hierarchical data displays. SftTree/OCX can be used in any ActiveX (OLE) control container, including Visual Studio (.NET), Visual Basic 6, Visual C++ (MFC), Access and many more. Index of the SftTree/OCX 8.0 guide, which is split into 6 files in reading order. Each entry links one file and lists its topics; read only the files you need. Online documentation: https://softelvdm.com/Documentation/SftTree%20OCX%208%200 API reference (index of the reference files): https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-reference.txt ## Introduction https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-1.txt - SftTree/OCX 8.0 Product Documentation: SftTree/OCX is an ActiveX control for the Windows™ operating system, offering easy to use multi-line, multi-column, hierarchical data displays. - New Features: SftTree/OCX 8.0 is virtually 100% upward compatible from version 7.5 and older versions. - Upgrading To Version 8.0: Only a minimal conversion is required when upgrading from SftTree/OCX 7.5 to SftTree/OCX 8.0. - Installing SftTree/OCX: SftTree/OCX 8.0 has the following system requirements: ## Features (1 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-2.txt - Tree Components: The following describes the individual components that are available in a SftTree/OCX tree control. - Split Tree Control - Splitter Bar: A split tree control is a tree control that has multiple columns and a splitter bar (see the Splitter.Visible property). - Right-To-Left Reading Support: When the RightToLeft property is set to True, the tree control will support right-to-left reading where the tree hierarchy is displayed on the right hand side of the control. - Using Themes: Windows themes can be selected by the user using the Windows settings. - Dark Mode: SftTree/OCX 8.0 supports dark mode. - High Contrast: Windows High Contrast is an accessibility setting, not a visual preference. - Accessibility (Screen Readers): SftTree/OCX 8.0 includes built-in Windows UI Automation (UIA) support. - Per-Monitor DPI and Scaling: SftTree/OCX 8.0 is fully Per-Monitor v2 DPI-aware. - Drag & Drop: SftTree/OCX supports three different types of drag & drop, based on the DragMethod settings. - Horizontal Scrolling: Using horizontal scrolling is very easy, even if multiple columns are used. - Items: Items within tree controls have relationships to other items based on the level they are on. - Row Headers: The optional row headers are available for single- and multi-column trees, with labeled buttons or just titles (see RowHeaders.Appearance). - Expanding/Collapsing Items: SftTree/OCX supports expanding and collapsing tree items with minimal application intervention. - Expand/Collapse Buttons: Expand/collapse buttons are optional buttons displayed on the tree lines (see ButtonStyle and Items.TreeLineStyle) to allow users to expand and collapse tree sections by clicking a button. - Fixed / Variable Height Items: There are two methods by which a tree control determines the height of an item. - Item IDs: Items in a tree control are managed as a linear list or array of items. ## Features (2 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-3.txt - Selections: A SftTree/OCX tree control supports single and multiple selection based on the Items.MultiSelect property settings. - Flyby Highlighting: As the mouse cursor is positioned above any cell of an item in the tree control, the cell text in the first displayed column can be shown underlined or rendered using a selection outline (depending on the Items.OutlineStyle property). - Cells: Each item in a tree control consists of one or multiple cells, one for each defined column. - Cell Merging: The contents of a cell can merge into an adjacent cell (on the right), including the cell colors, fonts and graphics attributes. - Multi-Line Cell Text: Cell text can consist of several text lines. - Cell Editing: Starting with release 5.0 of SftTree/OCX, a new cell editing mechanism is available. - Content Windows: Each cell can contain a child window. - Columns: A SftTree/OCX tree control can define multiple columns (see ColumnsObj.Count), each with its individual text alignment (see Column.CellHAlign and Column.CellVAlign). - Display vs. Real Columns: When allowing column drag & drop to reorder columns, the user may see columns in an order other than the order in which an application sees the columns. - Column Headers: The optional column header is available for single- and multi-column trees, with labeled buttons or just titles (see Headers.Appearance). - Column Footers: The optional column footer is available for single- and multi-column trees, with labeled buttons or just titles (see Footers.Appearance). - Column Drag & Drop: SftTree/OCX can be enabled to allow users of the control to reorder columns by dragging a column and dropping it at the new position in the control. - Column Resizing: A SftTree/OCX control can define multiple columns, each with its individual text alignment (left, right, center). - Keyboard Interface: A tree control responds to the arrow keys, PgUp, PgDn, Up, Down, Home, End, etc. - Scroll Tips: Scroll Tips are displayed when the user drags the vertical scroll bar's scroll box using the mouse. - Tool Tips: If the text or graphic components in a cell are only partially visible, a Tool Tip may be displayed if the mouse cursor rests above the partially displayed area. - Progress Bars: SftTree/OCX supports a simple progress bar display in each cell. - Background Bitmap: Instead of using the defined background colors for the tree control, a user-defined bitmap can be displayed in the client area of the tree control (see the BackgroundPicture property). - GDI+: If GDI+ is available, the tree control supports additional features not otherwise available: - Bitmap Transparency: SftTree/OCX automatically uses bitmap transparency for all bitmaps used throughout a tree control. - Virtual Mode: The tree control can be used to display flat lists (without hierarchy) with up to 2,000,000,000 items. - Virtual Data Source: A tree control can be populated using conventional methods by adding items one at a time using the Items.Add or Items.Insert methods. ## Using SftTree/OCX (1 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-4.txt - Using SftTree/OCX: SftTree/OCX can be used with most development tools that support ActiveX controls. - Using SftTree/OCX with .NET (C#, VB.NET): .NET Framework and .NET 10 Adding SftTree/OCX To The Toolbox Adding SftTree/OCX To A Project Adding The SftHelperComponent To A Project Preparing a Project Special Considerations - Indexed Properties - Picture Properties - Font Properties - … - Adding Controls To The Visual Studio Toolbox: The controls are automatically added to the Visual Studio Toolbox during installation of SftTree/OCX and are located in the toolbox group "Softel vdm, Inc.". - Visual Studio 2026 Notes: The following notes describe behaviors you may encounter when using SftTree/OCX in the Visual Studio 2026 Windows Forms designer, particularly with .NET 10 (or later) projects. ## Using SftTree/OCX (2 of 2) https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-5.txt - Using SftTree/OCX with Visual Studio (Unmanaged C/C++): Adding SftTree/OCX To The Toolbox Adding SftTree/OCX To A Project Special Considerations - Picture Properties - Font Properties - Color Properties - Using SftTree/OCX with Visual Basic 6: Adding SftTree/OCX To A Project Special Considerations - Color Properties - Using SftTree/OCX with Other Development Tools: SftTree/OCX is designed according to the latest ActiveX standards and can be used with a wide variety of development tools. - Syntax Conventions Used: The syntax shown in this documentation follows these guidelines. - .NET Event Types: The syntax for events may list an event argument typically called e, which uses a type specific to the event shown as EventArgumentType. - Property Dialogs: Depending on the development environment used, the steps necessary to modify the control properties vary. - Attributes - Property Page: Defines the main attributes of the control. - Columns - Property Page: Defines basic attributes for all columns. - ColumnList - Property Page: Defines the attributes for each individual column. - Headers - Property Page: Defines basic attributes for all column headers. - Header List - Property Page: Defines the attributes for each individual column header. - Footers - Property Page: Defines basic attributes for all column footers. - Footer List - Property Page: Defines the attributes for each individual column footer. - Items - Property Page: Defines basic attributes for all items. - Item List - Property Page: Defines the attributes for each individual item and cell. - Row Headers - Property Page: Defines basic attributes for all row headers. - Row/Column Header - Property Page: Defines the attributes for the row/column header. - Row/Column Footer - Property Page: Defines the attributes for the row/column footer. - Splitter Bar - Property Page: Defines the attributes for the splitter bar. - Options - Property Dialog: The Options dialog allows you to change defaults of the property dialogs. - Load/Save - Property Dialog: The Load/Save buttons are used to load or save the settings for the currently selected control. - Updates - Property Dialog: Click on the "Free Updates..." button to download free product maintenance and updates from our web site. - Demo Application: During the installation of SftTree/OCX, an icon for the demo application "Demo" is installed in the program group SftTree OCX 8.0. - Samples: SftTree/OCX includes sample code for C# (including a .NET 10 sample), VB.NET, C++/MFC and VB6. ## Samples, Distributing SftTree/OCX https://softelvdm.com/Vault/Softelvdm.com/llms/SftTree-OCX-8.0-guide-6.txt - BookTable Sample (C++): This sample illustrates sorting, column reordering, responding to column header clicks, context menus, controlling expand/collapse buttons and plus/minus graphics. - CellEditing Sample (C++): This sample illustrates cell editing using edit controls and combo boxes, cell navigation, uneditable cells, checkbox cell image. - CellEditingII Sample (C++): This sample illustrates cell editing using ActiveX controls. - ContentWindows Sample (C++): This sample illustrates content windows using Windows Media Player, Internet Explorer controls and forms. - DragDrop Sample (C++): This sample illustrates drag & drop. - Email Sample (C++): This sample illustrates using a splitter bar, cell merging, cell images, sorting, column reordering. - ListFont Sample (C++): This sample illustrates cell fonts. - Pictures Sample (C++): This sample illustrates using bitmaps, images, imagelists, checkboxes, radiobuttons, color samples, progress bars and more. - Speed Sample (C++): This sample tests the tree control's performance when adding and deleting large numbers of items. - Virtual Sample (C++): This sample illustrates using virtual mode with cell editing. - Pictures Sample (C# .NET 10): This sample illustrates using bitmaps, images, imagelists, checkboxes, radiobuttons, color samples, progress bars and more, hosting SftTree/OCX in a .NET 10 Windows Forms application. - BookTable Sample (C#): This sample illustrates sorting, column reordering, responding to column header clicks, context menus, controlling expand/collapse buttons and plus/minus graphics. - CellEditing Sample (C#): This sample illustrates cell editing using edit controls and combo boxes, cell navigation, uneditable cells, checkbox cell image. - CellEditingII Sample (C#): This sample illustrates cell editing using ActiveX controls. - ContentWindows Sample (C#): This sample illustrates content windows using Windows Media Player, Internet Explorer controls and forms. - DragDrop Sample (C#): This sample illustrates drag & drop. - Email Sample (C#): This sample illustrates using a splitter bar, cell merging, cell images, sorting, column reordering. - ListFont Sample (C#): This sample illustrates cell fonts. - Pictures Sample (C#): This sample illustrates using bitmaps, images, imagelists, checkboxes, radiobuttons, color samples, progress bars and more. - Virtual Sample (C#): This sample illustrates using virtual mode with cell editing. - BookTable Sample (VB6): This sample illustrates sorting, column reordering, responding to column header clicks, context menus, controlling expand/collapse buttons and plus/minus graphics. - CellEditing Sample (VB6): This sample illustrates cell editing using edit controls and combo boxes, cell navigation, uneditable cells, checkbox cell image. - CellEditingII Sample (VB6): This sample illustrates cell editing using ActiveX controls. - ContentWindows Sample (VB6): This sample illustrates content windows using Windows Media Player, Internet Explorer controls and forms. - DragDrop Sample (VB6): This sample illustrates drag & drop. - Email Sample (VB6): This sample illustrates using a splitter bar, cell merging, cell images, sorting, column reordering. - ListFont Sample (VB6): This sample illustrates cell fonts. - Pictures Sample (VB6): This sample illustrates using bitmaps, images, imagelists, checkboxes, radiobuttons, color samples, progress bars and more. - Virtual Sample (VB6): This sample illustrates using virtual mode with cell editing. - XMLLoadSave Sample (VB6): This sample illustrates saving the tree control's contents to an XML file and loading them back, using both flat and nested (hierarchical) XML formats. - BookTable Sample (VB.NET): This sample illustrates sorting, column reordering, responding to column header clicks, context menus, controlling expand/collapse buttons and plus/minus graphics. - CellEditing Sample (VB.NET): This sample illustrates cell editing using edit controls and combo boxes, cell navigation, uneditable cells, checkbox cell image. - CellEditingII Sample (VB.NET): This sample illustrates cell editing using edit controls and combo boxes, cell navigation, uneditable cells, checkbox cell image. - ContentWindows Sample (VB.NET): This sample illustrates content windows using Windows Media Player, Internet Explorer controls and forms. - DragDrop Sample (VB.NET): This sample illustrates drag & drop. - Email Sample (VB.NET): This sample illustrates using a splitter bar, cell merging, cell images, sorting, column reordering. - ListFont Sample (VB.NET): This sample illustrates cell fonts. - Pictures Sample (VB.NET): This sample illustrates using bitmaps, images, imagelists, checkboxes, radiobuttons, color samples, progress bars and more. - Virtual Sample (VB.NET): This sample illustrates using virtual mode with cell editing. - Distributing SftTree/OCX: This section describes the preferred distribution method when shipping SftTree/OCX with your application. - Technical Support: New major versions and product maintenance are available with an active support subscription.