Information générale
Catégorie:
Contrôles ActiveX en VFP
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement