Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop in TreeView
Message
De
24/01/2001 00:25:07
Linn Kubler
Chartwell Midwest Wisconsin
Middleton, Wisconsin, États-Unis
 
 
À
23/01/2001 12:09:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00467151
Message ID:
00467760
Vues:
21
You're right Doug this was unnecessary, thanks. So now I can initiate a drag operation but I can't figure out how to make the other node objects highlight as I drag over them. Then of course dropping isn't working either. I'm trying to follow the online documentation for this operation but I can't quite get my mind around it.

The help instructions indicate I should use the drophighlight property along with the hittest function to accomplish this but it just hilights the first node and that's it, everything appears to be dropped on the first node. Regardless where I let go of the mouse button.

Can you shed some light on this for me?

Thanks again,
Linn

>Hi Linn.
>
>>I'm setting the selecteditem property in the mousedown event but it seems like only the parent nodes are being selected.
>
>Why do that? When the user clicks on a node, it automatically becomes the selected node.
>
>To prevent drag and drop of certain nodes, you could check something about the selected node in the code where you start your drag and drop and don't start the drag operation for certain types of nodes. For example, perhaps the key you assign to each node has some character in it indicating the type of node (eg. parent node keys start with "P").
>
>Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform