Information générale
Catégorie:
Contrôles ActiveX en VFP
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement