Page 1 of 1

on pasteKey strange behaviour?

Posted: Wed Nov 15, 2006 3:34 am
by nkrontir
Hi.

For some reason, the on pasteKey is giving me grief. I need to check the clipboarddata, and if a condition is true, paste the data and enable a button but revolution ignores me. I even tried:

Code: Select all

on pasteKey
   answer "PASTE"
end pasteKey
but for some reason it acts as if there is no such code.

What am I doing wrong here?

Posted: Wed Nov 15, 2006 11:05 am
by elanorb
Hi

The Revolution development environment traps the pasteKey (and cutKey and copyKey) message so it will not be received by a stack running in the development environment but will work in a standalone.

To test your pasteKey handler choose Suspend Development Tools from the Development menu. You should then be able to handle the message.

I hope this helps

Regards

Elanor

Posted: Wed Nov 15, 2006 6:43 pm
by nkrontir
Makes sense.
I've just realized that this actually exists in the transcript language reference but I had failed to see it as the comments for this are on the next page... :oops:

Thanks for your time.