Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree Views
Message
From
25/02/1999 09:40:48
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00191356
Message ID:
00191399
Views:
19
>Does anyone know how you can have a Windows Explorer type tree views in VFP. I would like to display a list of customers in a pane. When the user clicks on the plus sign the node expands to show a list of invoices. Then if the user clicks on the plus sign of an invoice the list expands to show the invoice items.
>
>I do not know how to associate the various nodes and levels with VFP tables etc. It should look something like I show below.
>
> + Widget Company
> + Wright Brothers Inc
> |_+ Imvoice # 353530
> |_+Invoice #345577
> |_ Ball Bearing
> |_ Camshaft
>

You can use the Treeview ActiveX control (stored in MSComCTL.ocx for VFP6 or COMCTL32.ocx for older versions) for the Tree it self
one of the methods in this control is NodeClick - you can use that to refresh your left pane

If you are talking about creating a whole Explorer like component, well, this is a little beyond the scope of an answer here, but basically you can create the pane view with a couple of containers and a shape between them (moving the shape will resize the containers. if you put the Treeview on one side and a gird or whatever on the other you can have what you want

Anyway, if/when you try to build such a component and have more specific questions let me know

One final thing - there are also some 3rd party ActiveX controls that give you this functionality (e.g. Protoview makes one) but I haven't used any of those so I can't commment on how they work with VFP

Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform