chasing the focus

Slava Paperno slava at lexiconbridge.com
Tue Jul 5 17:31:14 EDT 2011


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

Slava

> -----Original Message-----
> From: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] 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         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list