Right - On Drag Over

If On Drag Over returns -1 
  The cursor is set to a disallowed cursor (Circle with diagonal line), 
and the drop action is NOT allowed.
If On Drag Over returns 0
  THe cursor is/becomes an allowed (copy/drag-n-drop cursor), and the 
drop action is allowed.

What I am seeing, and traced (BTW - Tracing ON Drag Over is risky as it 
can quickly stack up calls and crash 4D) is that the On Drag Over event 
is firing, and my code returns 0 (everything is OK), the cursor stays 
(becomes) the 'allowed' (copy/drag-n-drop) cursor. BUT the action of 
releasing the mouse button (dropping) does NOT trigger the On Drop 
Event.

I have tried reversing the order of the conditional tests 
i.e. 
Cose of
:(On Drop)
:(On Drag Over)

vs
case of
:(On Drag Over)
:(On Drop)

still with no effect.....


On Wed, 14 Sep 2016 14:42:42 -0700, Kirk Brooks wrote:
> Chip,
> I have never used both Drog Over and On Drop on the same object, if I
> understand you correctly. Not sure if you are doing that but that's the
> first thing I'd look at.
> 
> ​You know I do the validation for the dropped data in On Drop. I get the
> data from the pasteboard, determine what the user is trying to do and that
> it's legal then either display an error message or process the drop. ​To my
> mind On drag over is more for setting visual indicators.
> 
> -- 
> Kirk Brooks
> San Francisco, CA
> =======================
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to