![]() |
[SOLVED ]TreeView Drag and Drop can't work in VFP9 |
Post Reply ![]() |
Author | |
fatwood ![]() Newbie ![]() Joined: 05 April 2009 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() 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 |
![]() ![]() ![]() ![]() ![]() |
Try to add
"this.obJECT.OLEDropMode=1" to INIT event
|
|
wlcabral
|
|
![]() |
|
fatwood ![]() Newbie ![]() Joined: 05 April 2009 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
THX.
But still can't trigger treeview.OLEDragOver event.
|
|
![]() |
|
fatwood ![]() Newbie ![]() Joined: 05 April 2009 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
btw.The source control (Drag) is ReportControl.
|
|
![]() |
|
wlcabral ![]() Groupie ![]() ![]() Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
you must set OLEDropMode in properties Window. ![]() |
|
wlcabral
|
|
![]() |
|
fatwood ![]() Newbie ![]() Joined: 05 April 2009 Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
![]() |
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 |