Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLEDragDrop event in Treeview control
Message
From
26/11/2001 16:37:31
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
OLEDragDrop event in Treeview control
Miscellaneous
Thread ID:
00586034
Message ID:
00586034
Views:
52
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!
Next
Reply
Map
View

Click here to load this message in the networking platform