Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A nice tree?
Message
De
08/05/2003 09:55:55
 
 
À
08/05/2003 06:14:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00786122
Message ID:
00786221
Vues:
16
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform