lock up a stack

Marian Petrides mpetrides at earthlink.net
Mon Sep 6 23:03:03 EDT 2004


I do the following at the very end of development to ensure that all 
field text is locked. The second loop ensures that all fields are not 
focusable, either.

To lock text in all fields and make the fields not focusable create a 
button on card 1 with the following script

on mouseUp

repeat with j = 1 to the number of cards
     go card j
     repeat with x = 1 to the number of fields
       set the lockText of field x to true
     end repeat
end repeat

   repeat with j = 1 to the number of cards
     go card j
     repeat with x = 1 to the number of fields
       set the traversalOn of field x to false
	--make field not focusable
     end repeat
   end repeat

end mouseUp


Once the scripts have executed, just delete the button from cd 1.




> On 9/5/04 11:55 PM, Sannyasin Sivakatirswami wrote:
>
>> What is wanted is a kind of global lock text function that does not 
>> require scripts to run through all fields in the mains stack and 
>> substacks. but simply lock all the text in one go...
>
>


More information about the use-livecode mailing list