Hi Peter, Mark and Jacque,
Sounds better to set all this in a dragStart handler:
on dragStart
set the dragImage to <ID>
[set the dragImageOffset to <point>]
set the dragData[<type>] to <data>
end dragStart
In your case: set the dragData["text"] to Transform(the dragData
["text"]) -- specific function
"Managing drag and drop #2" tutorial might help you:
This stack explores all ways to manage Drag and Drop especially with
Rev 2.9 new features: In one Rev window, between two Rev windows,
from Rev or towards Rev with text, images, files, etc. How to create
a drag image on-the-fly, a tools palette and many other tricks.
Scripts fully commented. Needs Rev 2.7 or later.
You will access this tutorial through "Tutorials Picker" a free
plugin that interfaces with the So Smart Software website in order to
display all available tutorials stacks directly from the web.You will
find it by going to http://www.sosmartsoftware.com/.Revolution/
Plugins or Tutorials section.
Le 9 avr. 08 à 07:49, J. Landman Gay a écrit :
Mark Schonewille wrote:
Hi Jacque,
I tried this. As long as you don't pass the message, it isn't too
late. Perhaps this is new in 2.9.
I didn't try to actually set the dragData again, though. I believe
it is easier to store the dragdata in a variable and use the
variable from there.
That's what I meant by "too late". When dragdrop fires, the drag
action has already completed and you can't take advantage of the
drop after that; all you can do is directly manipulate the text.
I am sure I used to be able to set the dragdata in other drag
events but now in 2.9 I can't seem to make it work any more. So
your way may be the only way now. The problem with placing the text
in a field from within the script is that you lose the automatic
drop placement in the field; you have to calculate it. Dragdrop can
do that for you.
I'll play with it some more. We used to be able to set the dragdata
but things have changed now in 2.9.
--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software | http://www.hyperactivesw.com
Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: [EMAIL PROTECTED]/
----------------------------------------------------------------
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution