[SOLVED ]TreeView Drag and Drop can't work in VFP9 |
Post Reply |
Author | |
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 25 May 2009 at 10:23pm |
Can't trigger OLEDragOver event.
The same code work good at VB6.
|
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
Try to add
"this.obJECT.OLEDropMode=1" to INIT event
|
|
wlcabral
|
|
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
THX.
But still can't trigger treeview.OLEDragOver event.
|
|
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
btw.The source control (Drag) is ReportControl.
|
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
I don't know why, but VFP do not recognize this property at run time. You must set "OLEDropMode=1" at DESIGN time.
|
|
wlcabral
|
|
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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!
|
|
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
you must set OLEDropMode in properties Window. |
|
wlcabral
|
|
fatwood
Newbie Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |