|
Overview
|
The TreeView control is an exceptional piece of code courtesy of Dan Litwin
(litwin@gottliebaza.org ; can also be found masquerading
as "Dan Litwin" on AOLIM).
Dan rose to my challenge of implementing a TreeView in VB right back in June,
unfortunately I then sat on it for 4 months occasionally doing a bit of debugging
before finally getting around to releasing it here. My
apologies to everyone, hope it was worth the wait!
|
Features
|
- Internet Explorer Favorites style view.
- Append a number to any node, allowing you to create an Outlook style folder list
with message counts.
- Choose Font and Colour on an item-by-item basis, and set the control's back colour.
- Bolding of items
- InfoTip (multi-line tooltip) support with full control over InfoTip colour
- Works with Microsoft or API ImageLists.
- Item check boxes
- Full-Row select mode
- Single-Click expand mode
- Supports Two Images per item: one standard icon and a state icon.
- Disable Custom Draw for maximum speed
- Speed-optimised Clear method
Coding With the TreeView Control
|
The standard VB TreeView control uses an object model structure to navigate around the elements
of the tree, which are described as Nodes. Nodes can be identified either by
a Key, a 1 based Index, or by their relationship to another Node. Identifying Nodes by their index
is slow because the control must enumerate through all items to find the appropriate index.
This Tree control provides a flat model instead, so all items can be referred to directly without
intermediate object stages. Tree items can be identified either by a Key or their Handle,
which is the API hItem of the item within the Tree, or though their relationship with other
items.
|
Documentation
|
Documentation for the TreeView control's properties, methods and classes
is available as an RTF. This documentation was
created with the Active X Documenter.
|
|
Click here to download/view the TreeView control method and event documentation
|
Back to top
Back to Source Code
|
  |