Date: Wed, 28 Jan 1998 17:02:23 -0800 From: "Steven De Mar (ArtSource)"Here is one that I always end up forgetting but then when I need it, it isn't posted anywhere. It is "how do you set the field focus in a Director field via lingo".Subject: Setting field focus in Director...
Here is one way that works for me. Say you have a series of fields on the stage and you want to set the focus to one in particular. And lets say it isn't in the tabbing order that they were created with at author time. Here is what you do...
on setFldFocus aFldSprt, listFldSprites -- a linear list of your field sprites
-- clear the focus from all field sprites
repeat with nextFld in listFldSprites
set the editable of sprite nextFld = FALSE
end repeat
-- set the focus to your target field sprite
set the editable of sprite aFldSprt = TRUE
end
Simple enough, but it isn't documented anywhere and whenever I look for it I
go nuts.