chasing the focus
J. Landman Gay
jacque at hyperactivesw.com
Tue Jul 5 14:44:33 EDT 2011
On 7/4/11 10:49 PM, Slava Paperno wrote:
> I'm trying to figure out why a field is losing focus and I don't know which
> tools to use for the hunt.
>
> At the very end of a mouseUp handler of a button I have this:
>
> on mouseUp
> .....
> focus on field "SearchTarget"
> put the name of the focusedObject& cf after msg
> end mouseUp
>
> And I do see [field "SearchTarget"] in the Message box, as expected. But
> then focus immediately shifts to the card.
If the button has autohilite set to true, it will remove the focus from
a field when you click it. As soon as your mouseup handler ends, focus
disappears. The fix it to turn off autohilite.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list