![]() |
[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)
Quote Reply
Topic: [SOLVED ]TreeView Drag and Drop can't work in VFP9Posted: 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)
Quote Reply
Posted: 26 May 2009 at 9:24pm |
|
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)
Quote Reply
Posted: 27 May 2009 at 2:06am |
|
THX.
But still can't trigger treeview.OLEDragOver event.
|
|
![]() |
|
fatwood
Newbie
Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: 27 May 2009 at 2:10am |
|
btw.The source control (Drag) is ReportControl.
|
|
![]() |
|
wlcabral
Groupie
Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
fatwood
Newbie
Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
wlcabral
Groupie
Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 June 2009 at 10:37am |
|
you must set OLEDropMode in properties Window. ![]() |
|
|
wlcabral
|
|
![]() |
|
fatwood
Newbie
Joined: 05 April 2009 Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: 02 June 2009 at 1:21am |
![]() |
|
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 |