Welcome! Log In Create A New Profile

Advanced

Abort dragdrop [WD12]

Posted by Piet van Zanten 
Piet van Zanten
Abort dragdrop [WD12]
August 04, 2008 10:10AM
Hi forum,

Is there a way to abort a drag in the procedure called by the dndBeginDrag event?
I'using drag and drop by program inside a table from one cell to another. This works fine, but If a source cell is empty, I want the dragging to abort (or not start at all) and the cursor returned to normal.
In the startDrag procedure I tried:
DnDAccept(dndNone)
Sendkey("{ESC}")
Sendkey("{LEFTBTN-}")
followed by a RETURN. These don't work, any other ideas?

Best regards,
Piet




Edited 1 time(s). Last edit at 08/04/2008 10:10AM by Piet van Zanten.
Leo Voet
Re: Abort dragdrop [WD12]
August 10, 2008 11:03PM
in the initialisation code of the control
myself..DnDSource = false

in the on change event

if myself = "" then
myself..DnDSource = false
else
myself..DnDSource = true
end

Piet van Zanten
Re: Abort dragdrop [WD12]
August 11, 2008 10:22AM
Thanks Leo, but the dndSource and dndTarget property do not apply to table cells/columns.

Best regards,
Piet
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: