Drag-n-drop Time Out & Rev Freeze

Ken Ray kray at sonsothunder.com
Thu Feb 19 21:50:22 EST 2004


So how about this:

on dragEnter
  set the acceptDrop to true
end dragEnter

on dragDrop
  set the droppedFiles of me to the dragData
  send "NotifyUser" to me in 20 milliseconds
end dragDrop

on NotifyUser
  answer "You dropped these items on me:" & cr & cr & (the droppedFiles
of me)
end NotifyUser


That should work...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> Thanks for the feedback, Ken.  Maybe this would help explain 
> my situation. 
>  Here's a distilled version of my problem:
> 
> --begin--
> --add this code to the script of a scrolling list field--
> 
> on dragEnter
>   set the acceptDrop to true
> end dragEnter
> 
> on dragDrop
>   put the dragData into myFiles
>   answer "You dropped these items on me:" & cr & cr & myFiles 
> end dragDrop
> 
> --end--
> 
> I'm running MacOSX (10.3.2).  If you drag one or more files 
> to the field 
> and wait 20 secs, you'll see ghosts of the dragged files zoom back to 
> their source.  At that point I cannot click on the OK of the answer 
> dialog.  Sometimes I can press return to answer "OK", but 
> sometimes Rev is 
> completely frozen and must be forced to quit.  The feedback 
> the user's 
> will see in the "real" answer dialog will be showing them 
> files that could 
> not be processed because they have invalid file names.  There 
> is a very 
> good chance the user will take longer than 20 secs to read this 
> information.
> 
> Thanks in advance...James
> 
> 
> 
> 
> 
> 
> "Ken Ray" <kray at sonsothunder.com>
> Sent by: use-revolution-bounces at lists.runrev.com
> 02/19/04 05:25 PM
> Please respond to kray; Please respond to How to use Revolution
>  
>         To:     "'How to use Revolution'" 
> <use-revolution at lists.runrev.com>
>         cc: 
>         Subject:        RE: Drag-n-drop Time Out & Rev Freeze
> 
> 
> Well, you could accept the file names from the drop and store 
> them in a variable (don't put them in a field), and *then* 
> bring up your answer dialogs. If everything's OK, you use the 
> data in the variable; if not, you ditch it.
> 
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/
> 
> > -----Original Message-----
> > From: use-revolution-bounces at lists.runrev.com
> > [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of 
> > James.Cass at sealedair.com
> > Sent: Thursday, February 19, 2004 3:56 PM
> > To: How to use Revolution
> > Subject: Drag-n-drop Time Out & Rev Freeze
> >
> >
> > Here's what happens:
> >
> > 1.  I drag some files from the OS (Mac OS X) to a 
> drag-n-drop enabled 
> > field. 2.  I have answer dialogs during the Drag-n-drop handler to
> > give feedback
> > to the user.
> > 3.  If the answer dialogs are not answered within 20 seconds, the
> > Drag-n-Drop times out and freezes Revolution.
> >
> > Has anyone encountered this problem and come up with a fix?
> >
> > Thanks in advance....James 
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com 
> > http://lists.runrev.com/mailman/listinfo/use-> revolution
> >
> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 
> _______________________________________________
> 
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 




More information about the use-livecode mailing list