Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag and drop with treeview
Message
De
25/05/1999 03:53:12
 
 
À
25/05/1999 01:57:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00222340
Message ID:
00222353
Vues:
16
>People ,
>
>I have a couple of problems with drag and drop operations
>in the treeview control , the problem is that when i start a
>drag operation (i drag the node) i want a reference of the node that i am dragging, so i put some code im my mousedown event of the treeview control something like this
>ox = this.selecteditem , but when i do that i get a reference of the previous selecteditem , i must first click on the nodes before i can
>do a drag operation .I even tried the hittest method in the mouseover
>event but i don't get a reference back , the only thing that the
>hittest method returns is a true , but i don't think that that is good . Can someone please tell me what am i doing wrong.

Your problem might be that treeview uses twips and not pixels so you have to do a conversion for it to work (there are 1440 twips per inch and you can get the number of pixels per inch using the GetDeviceCaps API call)
IAC you can find examples for D&D with a treeview on the Files section of the UT (the cabinet icon)

Arnon
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform