Drag text from locked field

André Bisseret andre.bisseret at wanadoo.fr
Sat Nov 15 05:16:56 EST 2014


Le 15 nov. 2014 à 00:11, Bob Sneidar a écrit :

> I suspect the answer is no, but is there a way to drag text from a locked field? So far it seems not. I can probably unlock the field on a mouseDown event and relic it on a mouseUp, but that is getting ugly. I need to be able to select and drag text from a field but not allow editing. 
> 
> Bob S
> 
In the script of  the locked field put the following handler :

on mouseDown
   if the shiftKey is down then
      -- or controlKey or commandKey as well
      select the mouseLine
      set the dragData to value(the selectedLine) & cr
   end if
end mouseDown

best

André



More information about the use-livecode mailing list