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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to