Craig/John, I'm not surprised that code that works elsewhere doesn't once I get my hands on it!
Back in the day when I ran a consultancy practice, the developers used me as a test case for 'idiot-proof'! ;-) So, it's probably an interaction with some of the other code I've recently bludgeoned into submission! Best, Keith.. On 12 May 2011, at 16:16, 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