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