Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop in TreeView
Message
De
25/01/2001 07:49:50
 
 
À
25/01/2001 02:06:40
Linn Kubler
Chartwell Midwest Wisconsin
Middleton, Wisconsin, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00467151
Message ID:
00468373
Vues:
32
Sounds like you're not setting the dragicon property properly. When you don't, the drag uses an outline of the treeview and it looks like the whole treeview is being dragged. Your drag/drop operation should still work, but it looks weird.

Alan

>>
>>You'll need to use VFP 6, since this doesn't work correctly in VFP 5. Set the DropHighlight property of the TreeView to the node the mouse is currently over in the DragOver event of the TreeView. Use HitTest to get the node for the X and Y coordinates passed to DragOver. In DragDrop, set DropHightlight to .NULL.
>>
>>By the way, are you using the proper twips to pixels factors to convert the X and Y coordinates used by HitTest? If not, download my white paper on ActiveX controls (including the TreeView) from the Technical Papers page of www.stonefield.com for details. This might be the source of other problems you're running into.
>>
>
>Thanks Doug, I looked up your whitepaper and looked at the example and that helps a lot. I tried your techneque but when I try to drag a selected node the whole treeview object moves. It's like instead of picking up the node it picks up the treeview object. Now I'm using VFP 6 and I selected the version 6 treeview control whereas I noticed you used the version 5 which is different. Is there that much difference? I poured over the properties but didn't see anything obvious. Have you seen this type of behavior?
>
>And thanks for the tip on the twips, I never would have found that on my own.
>
>Thanks again for helping me with this problem I really appreciate it. Beyond the twips issue this seems like a rather straight forward task but it's sure challenging me.
>
>Linn
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform