Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Native TreeView for VFP
Message
De
27/06/2001 01:06:15
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
À
26/06/2001 21:29:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00523952
Message ID:
00523989
Vues:
204
>Hi all,
>
>I'm just throwing this out there, but does anyone feel that VFP should get it's own TreeView control instead of having to rely on an ActiveX or third-party one?
>
>Just curious,

I'm with you; I avoid ActiveX at all costs. The distribution, etc. is a pain. I'll supplement my apps with a standard DLL any day (eg. Graphics Server).

Delphi, CBuilder and Kylix (and even Paradox) got it right; they have their own "native" Visual Component Library that surpasses all the ActiveX **** out there.

Actually, you can build your own "TreeView" in VFP using a Grid, some grid line suppression, deleting/undeleting (expanding/collapsing) on the fly, and using a "graphics" Font (like FoxFont) for "connectors". "Indenting", after all, is simply adding a "leader" that is proportional to the "level" an item is located at.

A ListBox and an array can also be used to simulate a TreeView, though collapsing/expanding is not as easy as with a Grid ... However, "pruning and grafting" is easier with an array-based ListBox.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform