Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - [SOLVED ]TreeView Drag and Drop can't work in VFP9
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
fatwood View Drop Down
Newbie
Newbie


Joined: 05 April 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fatwood Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED ]TreeView Drag and Drop can't work in VFP9
    Posted: 25 May 2009 at 10:23pm
Can't trigger OLEDragOver event.
 
The same code work good at VB6.
 
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 26 May 2009 at 9:24pm
 
Try to add
 
"this.obJECT.OLEDropMode=1"  to INIT event
 
wlcabral
Back to Top
fatwood View Drop Down
Newbie
Newbie


Joined: 05 April 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fatwood Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2009 at 2:06am
THX.
But still can't trigger treeview.OLEDragOver event.
 
Back to Top
fatwood View Drop Down
Newbie
Newbie


Joined: 05 April 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fatwood Quote  Post ReplyReply Direct Link To This Post Posted: 27 May 2009 at 2:10am
btw.The source control (Drag) is ReportControl.
 
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
fatwood View Drop Down
Newbie
Newbie


Joined: 05 April 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fatwood Quote  Post ReplyReply Direct Link To This Post 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!
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post Posted: 01 June 2009 at 10:37am

you must set OLEDropMode in properties Window.

wlcabral
Back to Top
fatwood View Drop Down
Newbie
Newbie


Joined: 05 April 2009
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote fatwood Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2009 at 1:21am
Thanks wlcabral .
 
It work when I set OLEDropMode in properties Window.
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.