V.3.1
ucTreeView

Extremely powerful Unicode Treeview control, with multi-selection, derived from ucTreeview 1.3.

This controls doesn't use Classes for node management, a node is an handle (long value) and you can retrieve node properties by passing its handle.
>>Common properties

Some Properties/Methods:
AddBitmap / AddIcon add images to the internal image list (required if you want to display icons)
AddNode add a new node
AutoInitImageList Automatically initializes the internal image list (default);
If you don't need icons on nodes turn this property to "false" so you'll remove also the space between the text and the node (useful also when using checkboxes on nodes).
BackColor / ForeColor / BorderColor / LineColor / InsertMarkColor colors
CheckBoxes Display checkboxes on nodes
CheckChildren Checks all children of a given node
Clear Clears the treeview
Collapse / Expand Collapses / Expands a certain node
DeleteNode Deletes a given node
EnsureVisible Ensures that a certain node is visible
FullRowSelect Should the selection act on the entire row?
GetKeyNode Gives the node by a key
GetNodeKey Gives the node key
HasButtons / HasLines / HasRootLines Has this node buttons/lines?
HideSelection Hide the selection when the control loses the focus?
HitTest Gives a node by the X,Y coordinates
IsValidKey Returns true if the key is valid
LabelEdit Set if the treeview supports label edit
NodeBold Sets/Gets fonts of the given node
NodeChecked Checks/Unchecks the given node
NodeChild Gives a child of a given node
NodeCount Gives the count of internal nodes
NodeExpanded Checks if a node is expanded
NodeFirstVisible / NodeLastVisible Gives the first and last visible node in the view
NodeFullPath Gives the fullpath of a given node
NodeGhosted Sets/Gets the node appearance
NodeHilited Highligh the node
NodeImage / NodeSelectedImage Node Image
NodeLevel Gives the level of a node
NodeParent Gives the parent of a node
NodePlusMinusButton Sets/Gets the node button
NodePrevious / NodeNext Gives the previous/next node
NodeRoot Returns the handle of the root node
NodeTag Sets/Gets the node tag
NodeText Sets/Gets the node text
NodeVisible Checks if a node is visible
Scroll Scrolls the control
SelectedNode Sets/Gets the selected node
SetRedrawMode Lock/Unlock the paint of control when you need to make a long-time update on it
SortChildren Sorts children of a certain node
StartLabelEdit / EndLabelEdit Edit a certain node label
How to use the control: (See the sample)

If you use icons on nodes, add icons to the internal image list of control using the "AddIcon" function; if you don't need icons turn the "AutoInitImageList" property to "false" and forgot about points 1 and 2

If you use icons:
1- Create a private enum on your form for image index so it's simple for you to add nodes with images
2- Use the "
AddNode" function to add nodes
http://www.hexagora.com
Thu, 20 Oct 2011 07:26:40 UT
Copyright 2003-11 by Lorenzi Davide