Workaround For No selectionChanged Message?

Phil Davis revdev at
Tue Oct 12 22:18:58 EDT 2010

  Hi Scott,

Your experience is consistent with mine. So when my code makes selection change, 
it sends "selectionChanged" to the target field right after doing so.

Phil Davis

On 10/12/10 5:42 PM, Scott Rossi wrote:
> Am I living on another planet or is the selectionChanged message not
> triggered by selecting the contents of a field via script?
> I have recently begun to struggle again with a simple text editor project
> and it seems when the contents of a field are selected via script (select
> text of fld 1), no selectionChanged message is sent.
> I have a frontScript with a selectionChanged routine that is supposed to
> track any changes in text selection.  It works as expected when selections
> are changed via mouse, click, and drag, but when text is selected by script
> using the above "select text of fld 1" nothing happens.
> Admittedly, this is Rev 4.0, but is this correct behavior?  I could use a
> klunky workaround of a looping script that constantly polls the selectedText
> but this is, er, klunky.  Might there be another way?
> Thanks for any suggestions/clarifications.
> Regards,
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> _______________________________________________
> use-revolution mailing list
> use-revolution at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

Phil Davis

PDS Labs
Professional Software Development

More information about the Use-livecode mailing list