Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Treeview question (hopefully the last one)
Message
 
To
30/10/2001 14:03:33
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00575243
Message ID:
00575267
Views:
24
>Hi,
>
>When I'm initializing a treeview control (with checkboxes set to .t.) is there any ways I can make certain check boxes appear with check marks while others do not?
>
>Thanks,
>Chris

Yes, when you add a node get a refrence to it like this:

loNode = Thisform.oleTreeView.Nodes.Add(,,,,)
*add the checkmark
loNode.Checked = .T.

Or you can do this.
Thisform.oleTreeView.Nodes(i).Checked = .T.

FYI: You can also do the same with the Node Objects "Expanded" property to automatically expand a branch.
Rip Ryness
International Falls, MN
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform