Kirk,
this idea is needed/use when working with drag n drop.
something like (all code off the top of my head, if I have the accept 
or reject value wrong - I apologize:
// Drop destination object method
c_longint($0)

case of
:(form event = on drag over)
  if (Dropping data is valid in this context)
    $0:=0
  else 
    $0:=-1
  end if
end case

If the data to be dropped is not valid, then the user gets the 'You can 
not drop that here' cursor icon, and if it is valid the user gets the 
'go ahead and drop that right here' cursor.

On Mon, 22 Jan 2018 08:30:55 -0800, Kirk Brooks via 4D_Tech wrote:
> 
> It may seem a bit odd to have an object method return a value but that's
> how it works.
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
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