Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDragDrop event in Treeview control
Message
De
26/11/2001 16:37:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
OLEDragDrop event in Treeview control
Divers
Thread ID:
00586034
Message ID:
00586034
Vues:
53
Hi,

I am trying to add Drag and Drop with a treeview control. I am basically following the example in the July 2001 issue of FoxPro Advisor. (starting on page 18) Anyways I am trying figure out the node onto which the user dragged the object. Basically they have
lc = data.getdata(1)
lnXFactor = 1440/96*(13/FONTMETRIC(1, "Arial", 10, "B"))
lnYFactor = 1440/96*(13/FONTMETRIC(7, "Arial", 10, "B"))
lc2 = this.hitTest(x * lnXFactor, y * lnYFactor)
They had a different font in lnXFActor and lnYFactor, I changed it to match the font I am using. Basically the hitTest is returning .t. and not the node that the user dropped the object on.

Any ideas? Thanks!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform