how to detect insertion point

Mark Schonewille m.schonewille at economy-x-talk.com
Sun Oct 5 23:25:36 EDT 2014


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 <larry at 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 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