On 2/22/2015 1:11 PM, Peter Haworth wrote:
I'm trying to find a message that is sent when I click on a line in a
scrolling list field that happens before the selectedline property changes
to show the line that was just clicked.

I've tried mouseDown and selectionChanged but the selectedLines property
has already changed when I get them.

The purpose is to remember the selectedLines before the most recent click.
I can do it by storing the selected lines in a script local variable but
just curious to know if there is a message that is sent before the
selectedLines property changes.

That's how I've always done it, I couldn't find any other way. But now we have "before" and "after" handlers for use with behaviors, so if I had to figure this out again, I'd assign a behavior to the field and try those.

before mouseDown
  -- get the line number
end mouseDown

Might work.

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

Reply via email to