The problem I run into is if I
drag a dataformat not expected to the droptarget. I get this error
message:ole\droptgt.cpp(270): assert failed.
Do you want to stop the program... etc. etc.
def OnEnter(self, x, y, d):
return wxDragCopy
def OnDragOver(self, x, y, d):
return wxDragCopy
You need to return d from these methods. By returning wxDragCopy you're saying that it's okay to drop the data here. When it gets into the actual drop there is a safety check to make sure the data types match that is failing. The d parameter is the suggested return value from the system based on keys held down, type checks, etc.
Ok thanks for the help, it worked. I remember the reason I had put
that there was during my walp'ing stage getting the basics of
drag'n'drop to work. Had some problems with the data I wanted to drop
being accept period. Now I realize all I had to do was:
result = dropSource.DoDragDrop(true)
instead of...
result = dropSource.DoDragDrop()
oh well.. all is well... thanks again =)
Brian...
···
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com