help needed working with modal stacks

Ken Ray kray at sonsothunder.com
Wed May 3 11:23:02 EDT 2006


On 5/3/06 3:20 AM, "Mark Schonewille" <m.schonewille at economy-x-talk.com>
wrote:

> Dear Stephen,
> 
> This example should get you going:
> 
> on preOpenCard
>    set the hilitedLines of fld 1 to 0
>    set the traversalOn of fld 1 to false
> end preOpenCard
> 
> on openCard
>    lock screen
>    set the traversalOn of fld 1 to true
>    unlock screen
> end openCard

Actually, Mark, it's simpler than this, although you have hit the nail on
the head with 'traversalOn':

on preOpenCard
   set the traversalOn of fld 1 to false
end preOpenCard

on openCard
   set the traversalOn of fld 1 to true
end openCard

I've been waiting for a recipe that was simple enough to not have the first
field auto-focused, and this is it! Thanks, Mark!

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com





More information about the use-livecode mailing list