How To Save the Viewing Order of Nodes in a TreeView (161735)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q161735 SUMMARY
The sample BldTree.scx, located in the Vfp\Samples\Solution\Ole folder, is
an example of how to use the TreeView Control. It allows you to add nodes
to the TreeView and then save and restore the Nodes from a table. The
algorithm that the sample uses saves all of the Nodes by index order.
Because of this, it does not restore the Nodes in the same order if you
added nodes using "Previous" for the Relationship. This article shows an
algorithm that lets you save the Nodes in viewing order so that they can be
restored in the same order.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbcode kbCtrl kbhowto KB161735 kbAudDeveloper |
---|
|