Craig, I'm not at my computer right now, but did you test your method with a 
field that has less lines of data than the field will display, and then move 
the mouse into the field over an "empty" line?

Perhaps that will generate the error...

Ken Ray
Sons of Thunder Software, Inc.

On May 12, 2011, at 10:16 AM, dunb...@aol.com wrote:

> Hmmm.
> 
> 
> There is something else going on, because both approaches work identically 
> for me. As they ought to. Anyway, as John says, the good news is there is 
> more than one way to do almost anyting. I originally did it with a mouseMove 
> as well, and now that I think about it, this is likely slightly more robust, 
> even though functionally indistinguishable.
> 
> 
> Craig Newman
> 
> 
> 
> 
> 
> -----Original Message-----
> From: John Dixon <dixo...@hotmail.co.uk>
> To: use-livecode@lists.runrev.com
> Sent: Thu, May 12, 2011 10:44 am
> Subject: RE: Highlight list line on hover?
> 
> 
> 
>> I just retried both John's and your scripts, to see if it was me... 
>> • John's does not affect the default list field behaviour - the highlight 
> changes only on mouseDown.
> 
> Keith, the highlight does not change on mouseDown, it changes when the mouse 
> is 
> over the line... the first line in the handler is to stop the highlight being 
> set to the first line if the cursor is moved over a line in the field that is 
> empty...
> 
> on mouseWithin
>   if the mouseLine is empty then exit mouseWithin
>   select the mouseLine
> end mouseWithin
> 
> Not that it matters, as one of the nice things about LiveCode is that 
> there is always another way to accomplish something... the purists will 
> 'carp' on about best practices, which always makes me smile... Who is to
> say ?
> 
> Take care... :-)
> 
> 
> 
> 
> _______________________________________________
> 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

Reply via email to