Step Handle the drop

The DoDragDrop() method will not return until the drop is either canceled or accepted by a target. In the meantime, your application thread is blocked, although paint events will continue to be sent. The return value of DoDrag-Drop() is based on the operation requested by the target and consists of one of the following:

■ wx.DragCancel for a canceled operation

■ wx.DragNone on an error

It is your application's responsibility to respond to the return value appropriately. Typically, this means doing nothing in response to the copy, but deleting the dragged data in response to a move.

Was this article helpful?

0 0

Post a comment