Print Page | Close Window

[SOLVED ]TreeView Drag and Drop can't work in VFP9

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=14383
Printed Date: 04 May 2024 at 12:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED ]TreeView Drag and Drop can't work in VFP9
Posted By: fatwood
Subject: [SOLVED ]TreeView Drag and Drop can't work in VFP9
Date Posted: 25 May 2009 at 10:23pm
Can't trigger OLEDragOver event.
 
The same code work good at VB6.
 



Replies:
Posted By: wlcabral
Date Posted: 26 May 2009 at 9:24pm
 
Try to add
 
"this.obJECT.OLEDropMode=1"  to INIT event
 


-------------
wlcabral


Posted By: fatwood
Date Posted: 27 May 2009 at 2:06am
THX.
But still can't trigger treeview.OLEDragOver event.
 


Posted By: fatwood
Date Posted: 27 May 2009 at 2:10am
btw.The source control (Drag) is ReportControl.
 


Posted By: wlcabral
Date Posted: 27 May 2009 at 9:41am
I don't know why, but VFP do not recognize this property at run time.  You must set "OLEDropMode=1"  at DESIGN time.

-------------
wlcabral


Posted By: fatwood
Date Posted: 31 May 2009 at 12:32am
YES.
I set "this.obJECT.OLEDropMode=1" in INIT event.
I found if I drag "VFP Shape Control" to the TreeView, the TreeViewControl can trigger "DragOver" event.
But when I drag ReportControl's Item, the TreeViewControl has nothing happen!


Posted By: wlcabral
Date Posted: 01 June 2009 at 10:37am

you must set OLEDropMode in properties Window.



-------------
wlcabral


Posted By: fatwood
Date Posted: 02 June 2009 at 1:21am
Thanks http://forum.codejock.com/member_profile.asp?PF=2958&FID=113 - wlcabral .
 
It work when I set OLEDropMode in properties Window.
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net