Contextual menu trouble
John Dixon
dixonja at hotmail.co.uk
Tue Jan 18 12:33:22 EST 2011
> @John: with the Locktext set to true?
> This way I cannot paste into the field.
In the script of the field...
on mouseDown
popUp button 1
end mouseDown
popUp button script
on menuPick pItemName
/* find out which field has been clicked on */
put word 2 of the clickField into theFieldNo
switch pItemName
case "Paste"
/* check that the clipBoard is holding text */
if the clipboard is "text" then
/* put the text after whatever is already in the field */
put the clipboarddata after fld theFieldNo
else
/* if there was no text in the clipBoardData then beep */
beep
end if
break
case "Clear"
put empty into fld theFieldNo
break
end switch
end menuPick
Does this help ?
More information about the use-livecode
mailing list