Drag & Drop - preventing a drop

From REALbasicWiki

Jump to: navigation, search

Someone recently asked on the NUG Mailing List how to prevent a drop of a text clipping onto an EditField.

Here's a way to accomplish this by adding code to some of your Window event handlers:

Add to Window.Open:

me.AcceptTextDrop

Add to Window.DragEnter:

EditField1.Enabled = false

Add to Window.DragExit:

EditField1.Enabled = true

Personal tools
related