Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and Drop in TreeView
Message
From
24/01/2001 00:25:07
Linn Kubler
Chartwell Midwest Wisconsin
Middleton, Wisconsin, United States
 
 
To
23/01/2001 12:09:00
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00467151
Message ID:
00467760
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform