Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Native TreeView for VFP
Message
From
27/06/2001 01:06:15
Gerry Schmitz
GHS Automation Inc.
Calgary, Alberta, Canada
 
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00523952
Message ID:
00523989
Views:
201
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform