Scrolling List selected lines

Peter Haworth pete at lcsql.com
Sun Feb 22 21:19:44 CET 2015


Nice idea but alas, no joy with before mouseDown.  I think the OS must do
the highlighting even before LC gets into the loop.

On Sun Feb 22 2015 at 12:14:48 PM J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


More information about the use-livecode mailing list