Scrolling List selected lines
J. Landman Gay
jacque at hyperactivesw.com
Sun Feb 22 15:14:34 EST 2015
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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list