Hilite Lines on Hover in List Field

Sivakatirswami katir at hindu.org
Sat Sep 1 23:05:06 EDT 2007


Mark Schonewille wrote:
> Hi Sivakatirswami,
> 
> Here are two solutions. Put the first one into the script of a list 
> field. Put the second script into the script of a non-list field.
> 
> on mouseMove
>   put word 2 of the mouseLine into myLineNr
>   if myLineNr is not empty and the hilitedline of me is not myLineNr then
>     set the hilitedLine of me to myLineNr
>   end if
> end mouseMove
> 
> on mouseMove
>   put word 2 of the mouseLine into myLineNr
>   if myLineNr is not empty and the backColor of line myLineNr of me \
>       is not yellow then
>     set the backColor of line 1 to -1 of me to white
>     set the backColor of line myLineNr of me to yellow
>   end if
> end mouseMove
> 
> Is this what you need?
> 
> Best regards,
> 
> Mark Schonewille
> 
Perfect! thanks, I like the first one... one can set the hilite color in 
the field props.

and now this is nicely saved in my newly updated Scripter's Scrapbook.

Aloha from Hawaii
Sivakatirswami



More information about the use-livecode mailing list