Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A nice tree?
Message
From
08/05/2003 09:55:55
 
 
To
08/05/2003 06:14:49
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00786122
Message ID:
00786221
Views:
18
Hi Kevin.

I would like to set up a treeview type control that maps parents/ children from 2 different tables. I've (briefly) looked at a few activeX controls but nothing looks easy (and/or nice) to use.

If you have a copy of MegaFox: 1002 Things You Wanted to Know About Extending VFP, we have a data-driven treeview class that acts like a data-bound control in Chapter 9. Just set one array property and the tree drives itself < s >

How do I use the TreeView?(Example: activeX.vcx::acxTreeView and TreeView.scx)

The TreeView is a good choice for displaying hierarchical data. It offers two specific advantages over using a series of related grids to display the same information. First, the relationships between the items are unmistakable when displayed in a TreeView. Second, when screen real estate is at a premium, the display requires a much smaller area without losing definition.

The basic principles for working with the TreeView are very similar to the ListView and ImageCombo and this is not surprising when you consider that they all do much the same thing. While the ListView has a ListItems collection and the ImageCombo has a ComboItems collection, the TreeView has a Nodes collection. A Node, in this context, is simply the item of data that occupies a specific position in the hierarchy. Working with the TreeView requires two basic operations; adding Nodes and navigating between them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform