Highlight list line on hover?

dunbarx at aol.com dunbarx at aol.com
Thu May 12 11:16:55 EDT 2011


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 <dixonja at hotmail.co.uk>
To: use-livecode at 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 

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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 


More information about the use-livecode mailing list