Thanks Mike!
Now I can keep the rest of my hair!
Larry

----- Original Message ----- From: <miked...@gmail.com> To: <use-livecode@lists.runrev.com>; "How to use LiveCode" <use-livecode@lists.runrev.com>
Sent: Sunday, October 05, 2014 8:47 PM
Subject: Re: how to detect insertion point


What about exitfield?

Mike

Original Message
From: la...@significantplanet.org
Sent: Sunday, October 5, 2014 10:45 PM
To: How to use LiveCode
Reply To: How to use LiveCode
Subject: Re: how to detect insertion point

Thanks Kay,
For some reason, neither focusIn nor focusOut works.
I can get what I want with openField but I haven't found anything that works
when the focus is no longer on the field; focusOut doesn't work and neither
does closeField (because closeField only works if the user changed the
contents of the field)
So I'm just here tearing my hair out!
Larry

----- Original Message ----- From: "Kay C Lan" <lan.kc.macm...@gmail.com>
To: "How to use LiveCode" <use-livecode@lists.runrev.com>
Sent: Sunday, October 05, 2014 8:35 PM
Subject: Re: how to detect insertion point


Maybe the focusIn messgae might help.

On Mon, Oct 6, 2014 at 10:30 AM, <la...@significantplanet.org> wrote:
Hello,

I have several fields... myField1, myField2, etc.

When the user clicks within a field, I want to detect the (?? selection,
insertion ??) and run a script.

I've experimented for over an hour with no luck.

The only thing I found that sort of works is:
on mouseEnter
do stuff
end mouseEnter

The problem with that is that one of the things I want to do is change
the color of the field while the script is doing stuff and only change
back to the original color when the stuff is finished, and not when the
mouse leaves. It is too clunky to require the user to leave the mouse in
the field while the stuff is being done.

I hope that makes sense.
Thanks for any help.
Larry
_______________________________________________
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

_______________________________________________
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


_______________________________________________
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

_______________________________________________
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

_______________________________________________
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