Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and Drop in TreeView
Message
De
24/01/2001 11:44:37
 
 
À
24/01/2001 00:25:07
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:
00467933
Vues:
21
Hi Linn.

>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.

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.

Doug
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform