Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview question
Message
 
 
À
10/10/2001 13:44:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00566529
Message ID:
00566550
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform