Thanks Jacquie. Here's an interesting one. I put an answer information at the top of my selectionChanged handler so I could tell what might be triggering it. Clicking on the line number to set a debug break point didn't trigger it. Moving around with the script editor window (with arrow keys and mouse clicks) did, as you said it would. But then I clicked on the menu bar of the Application browser window and my answer information popped with field "Script". Maybe selectionChanged happens when you leave a field as well as when you move around within it?


Pete Haworth

On Dec 12, 2010, at 12:22 PM, J. Landman Gay wrote:

On 12/12/10 12:27 PM, Peter Haworth wrote:
I have a front script that intercepts the selectionChanged message to
deal with some special handling of datagrids. The dictionary says that
selectionChanged is "Sent to a field or player when the selection is
changed." Obviously the datagrid message should be added to that
description but it also seems form error I get in my script that other events cause a selectionChanged message to be created. Does anyone have any experience of all the events that cause this message to be generated?

I don't have a list, but anything that changes the cursor position will generate the message. That would include using the arrow keys to move around the text in a field (or to change a line selection in a list field), and clicking anywhere in the field.

--
Jacqueline Landman Gay         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
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