Scrolling List selected lines
dunbarx at aol.com
dunbarx at aol.com
Sun Feb 22 21:28:02 CET 2015
Why not store the current selectedLine when it is actually selected, in a custom property. In other words, lock away that information really early, instead of merely early.
From: Peter Haworth <pete at lcsql.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Feb 22, 2015 3:20 pm
Subject: Re: Scrolling List selected lines
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>
> 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
> > 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
> > 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
> 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:
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
More information about the use-livecode