Drag text from locked field

Bob Sneidar bobsneidar at iotecdigital.com
Mon Nov 17 10:33:12 EST 2014


Oh cool. Thanks. I don’t mind having to use a modifier. I do think however that drag and drop from an unlocked field with traversalOn disabled should still be allowed. I get however that a field would need focus which traversalOn allows, so perhaps fields need another property like allowEdit. 

Bob S


> On Nov 15, 2014, at 02:16 , André Bisseret <andre.bisseret at wanadoo.fr> wrote:
> 
> 
> 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é
> _______________________________________________
> 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