Changing the clickLine

Gardner, Joseph A joe.gardner at nwa.com
Wed Feb 4 02:48:37 EST 2004


Jacque et. al, I dived into the "selectionChanged" quagmire and the first thing I found in the docs was "The selectionChanged message is not sent if the user uses the arrow keys to change the selection." Ouch! The weird thing is that the selected line in the field does move up and down with the arrows (a result of the textKeys being "true"), but no action is done on the files so named in the field. So I'm now investigating the "rawKeyUp" message in hopes it will lead me to the solution I'm looking for.

OTOH, I've really simplified my code quite a bit using "selectionChanged". Richard was right; once I unlearned a bit, it actually came easily. Fear not, I'm _really_ loving Rev (bugs and all)!

joe.

p.s. Apologies to Erik, but I'm no longer interested in changing the clickLine. :)


Jacque said:

The magic word, as Richard mentioned, is "selectionChanged". You get 
that message whether the user clicks in a field or uses the arrow keys 
to navigate it (provided traversalOn is true.) Trap it with a handler. 
Within the handler, check the value of the hilitedline, and you are in.




More information about the use-livecode mailing list