Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag and drop in treeviews
Message
From
24/10/2008 17:16:56
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356825
Message ID:
01357086
Views:
31
I use the following in the MouseDown event to detect the node:
LPARAMETERS pnButton, pnShift, pnX, pnY
LOCAL loNode
IF pnButton = 2
	loNode = this.HitTest(GKKPixelsToTwips(pnX,"H"),GKKPixelsToTwips(pnY,"V"))
	IF VARTYPE(loNode) = "O"
		this.RightClkMenu(loNode)
	ENDIF
ENDIF
This is used to call a right-click menu. I have a UDF to get the pixels to Twips.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform