Print Page | Close Window

OLE Drag&Drop doesn't work

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16328
Printed Date: 15 November 2024 at 9:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: OLE Drag&Drop doesn't work
Posted By: Fabian
Subject: OLE Drag&Drop doesn't work
Date Posted: 02 March 2010 at 9:11am
Hi,
 
I jumped to V13.3 (VB6/SP6, Win7). NoI run into problems with OLEDrag&Drop. What do I wrong:
 
RC.UnrestrictedDragDrop=True
RC.SortedDragDrop=True
RC.OLEDropMode=xtpOLEDropManual
RC.EnableDragDrop "DMXP", xtpReportAllowDrop
 
If I try to drag a file from the Windows explorer window to the RC I see only the 'no-drag' icon. The OLEDragOver event was never fired.
 
Any help???


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: McKloony
Date Posted: 02 March 2010 at 9:28am

Try:

ReVal = RC.EnableDragDrop("DMXP", xtpReportAllowDrag + xtpReportAllowDrop)


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: Fabian
Date Posted: 02 March 2010 at 9:53am
Thanks McKloony,
 
But that doesn't change anything.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: Oleg
Date Posted: 02 March 2010 at 2:47pm
Originally posted by Fabian Fabian wrote:

Hi,
 
I jumped to V13.3 (VB6/SP6, Win7). NoI run into problems with OLEDrag&Drop. What do I wrong:
 
RC.UnrestrictedDragDrop=True
RC.SortedDragDrop=True
RC.OLEDropMode=xtpOLEDropManual
RC.EnableDragDrop "DMXP", xtpReportAllowDrop
 
If I try to drag a file from the Windows explorer window to the RC I see only the 'no-drag' icon. The OLEDragOver event was never fired.
 
Any help???
 
 
Hi,  do you have x64 Machine ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 02 March 2010 at 3:11pm
Can you chec if standard ListBox works for you - just create new project, drop ListBox and code

Private Sub Form_Load()

List1.OLEDropMode = vbOLEDropManual

End Sub

Private Sub List1_OLEDragOver(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single, State As Integer)

Debug.Print "List1_OLEDragOver"

End Sub

seems its some WIndows 7 problems - works for my PC but not for another one.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: SuperMario
Date Posted: 02 March 2010 at 3:23pm
This might be caused by User Account Control trying to protect you from messages being sent between processes with different privileges. This can happen if the application you are dragging to is being "Run as Administrator." You can read more about this issue here ( http://foxsys.blogspot.com/2009/08/windows-7-user-account-control-uac-drag.html - Windows 7 – User Account Control (UAC) – Drag n’ Drop - Issuesl .)



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