Right, that's what I'm doing (except using a script local not a cprop). Was just hoping there might be a message that would avoid having to do that but looks like not.
On Sun Feb 22 2015 at 12:28:18 PM <dunb...@aol.com> wrote: > 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. > > > Craig Newman > > > > -----Original Message----- > From: Peter Haworth <p...@lcsql.com> > To: How to use LiveCode <use-livecode@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 <jac...@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 | 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 > > > _______________________________________________ > 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 > > > _______________________________________________ > 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 > _______________________________________________ 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