Yes! That was it. Thank you, Jacque (now I even know how to pronounce that
:)

Slava

> -----Original Message-----
> From: [email protected] [mailto:use-livecode-
> [email protected]] On Behalf Of J. Landman Gay
> Sent: Tuesday, July 05, 2011 2:45 PM
> To: How to use LiveCode
> Subject: Re: chasing the focus
> 
> 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         |     [email protected]
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> [email protected]
> Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


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

Reply via email to