You may use not only tab and shit+tab but also the mouse clicking a
field sprite with my behavior below.
-- [Auto-tabing behavior]
-- Attach to field sprites
property spriteNum, plInstances
on beginSprite(me)
sendAllSprites(#xCollectInstance, [])
sprite(me.spriteNum).member.editable = true
end
on endSprite(me)
plInstances.deleteOne(me)
end
on xCollectInstance(me, lListPointer)
plInstances = lListPointer
lListPointer.append(me)
end
on keyDown(me)
if the key = tab then
me.xAutoTabing()
else
pass
end if
end
on xAutoTabing(me)
oNextInstance = me.xGetNextInstance()
oNextInstance.xFocus()
end
on xGetNextInstance(me)
nCurrentPos = plInstances.getOne(me)
nAmount = plInstances.count()
nNextPos = ((nCurrentPos + the shiftDown * (nAmount - 2)) mod nAmount)
+ 1
return plInstances.getAt(nNextPos)
end
on xFocus(me)
the keyboardFocusSprite = spriteNum
end
_____
Luke Wigley wrote:
> Add a behaviour like this to all the editable fields
Good luck,
Fumio Nonaka
Phone: +81-42-397-9452
Fax: +81-42-397-9452
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]