Contextual menu trouble
William de Smet
williamdesmet at gmail.com
Tue Jan 18 13:28:12 EST 2011
@John: Thanks for your code and stack.
And indeed this works. However when I put everything in a new stack it
works but in an existing stack with more fields and button it doesn't
:-(
Got me puzzled! Thanks again!
Greetings,
William
2011/1/18 John Dixon <dixonja at hotmail.co.uk>:
>
>
>
>> @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 ?
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list