@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 <[email protected]>: > > > >> @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 > [email protected] > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
