PasteKey Bug?

Marty Knapp martyknapp at comcast.net
Thu Dec 17 14:39:00 EST 2009


That will do the trick for me. Sometimes I want to disallow pasting or 
check the contents of the clipboard before pasting (rather than testing 
the content of the field on exitfield).

Thanks again Mark!
> Hi Marty,
>
> Your menuPick handler should call a handler named pasteIt and the 
> pasteKey handler should do the same. Your pasteIt handler should do 
> exactly the same what currently your pasteKey handler does.
>
> Apparently, sometimes you want to be able to paste and sometimes you 
> don't. For this, you need to adjust your pasteIt handler, for example 
> something like:
>
> on pasteIt
>   if the short name of the selectedField is "Forbidden Field" then
>     beep
>     answer error "Paste not allowed"
>   else
>     paste
>   end if
> end pasteIt
>
> If this isn't what you're trying to do, please explain more.
>
> -- 
> Best regards,
>
> Mark Schonewille 




More information about the use-livecode mailing list