Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters for TreeView.Additem(?????, ??????, ????)
Message
From
23/07/1998 17:11:24
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00120738
Message ID:
00120745
Views:
20
Hi Larry ----

>I did this once, but cannot remember how and documentation seems scarce can anyone tell me how to add items to a tree view with the indentation levels, etc.

oTreeview.Nodes.Add(relative,relationship,key,text,image,selectedimage)

So, for a root node:

oTreeview.Nodes.Add(,,cRootKey,"Root Item")

For a child of that (the relationship=4, child):

oTreeview.Nodes.Add(cRootKey,4,cChildKey,"Child Item")
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform