> @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

Reply via email to