Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview question
Message
 
 
To
10/10/2001 13:44:22
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00566529
Message ID:
00566550
Views:
13
>Hi,
>
>I have been reading up on the Treeview control and it seems that the node can only contain text? I was wondering if this was possible using Microsoft Tree view Active X control:
>
>The ability to put in a checkbox in the node so that the user can select multiple items and then clicks a button on the form and some processing occurs based on the user's selections?
>
>If so, how could I put a checkbox in the node? If not, do you have another suggestion? I have thought of one alternative but I don't think its that good...I was thinking I could make two treeview active x controls where the user makes their selections from one of them and those selections are added to the second one. When they are done they could click a button and the processing would occur.
>
>Thanks,
>Chris

Chris,
You could set the Checkboxes property of the Treeview to .T. and add code to the NodeCheck event to add the necessary information to an array or cursor tracking what has/has not been selected/deselected. The NodeCheck event receives an object reference to the Node that was checked/unchecked.

FWIW, when we add a node we set the Index proeprty of the new node to the PK of the item being added. That way when a Node is selected, we can synchronize the underlying table using a simple seek().

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform