Thanks Craig,
I learned a lot today from your post and Jacque's post.
Larry
----- Original Message -----
From: <dunb...@aol.com>
To: <use-livecode@lists.runrev.com>
Sent: Sunday, October 05, 2014 10:06 PM
Subject: Re: how to detect insertion point
Larry.
It takes a while to learn the many LC commands, functions and properties
that pertain to the task at hand. Experimentation is the best way, but
also do use the dictionary, trying out various words that seem to fit
what you are looking for. And especially the "see also" entries when you
do.
In your original post, you mentioned the word "selection". That, or maybe
"select" by itself, would likely have led you to many possible lines of
experimentation. After a while, you will have a a sense of what and how to
search for in the dictionary, and the array of options presented there
will lead you farther. I would keep the filter set to "all".
Craig
-----Original Message-----
From: Mark Schonewille <m.schonewi...@economy-x-talk.com>
To: How to use LiveCode <use-livecode@lists.runrev.com>
Sent: Sun, Oct 5, 2014 11:26 pm
Subject: Re: how to detect insertion point
Hi Larry,
To detect the insertion pint when the user clicks in a field, you can do
this:
on selectionChanged
put the selectedchunk
end selectionChanged
--
Kind regards,
Mark Schonewille
Economy-x-Talk
Http://economy-x-talk.com
Share the clipboard of your computer over a local network with Clipboard
Link
http://clipboardlink.economy-x-talk.com
Op 6 okt. 2014 om 04:30 heeft <la...@significantplanet.org> het volgende
geschreven:
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