Dear Jeanne, Thanks for the suggestion.
Using this code, however, I get an execution error with Error description: do: error in statement -------------------- if storedHilitedChunk is not empty \ -------------------- Value: storedHilitedChunk I'm not sure what this means. Toma On 29.09.2002 18:06, "Jeanne A. E. DeVoto" <[EMAIL PROTECTED]> wrote: > Here's a quickie version of the highlighting code in the documentation: > > ---------- > local storedHilitedChunk > > on mouseMove > -- first unhighlight the "old" phrase if necessary: > if storedHilitedChunk is not empty \ > and storedHilitedChunk is not the mouseChunk then > do "set the backgroundColor of" && \ > storedHilitedChunk && "to empty" > put empty into storedHilitedChunk > end if > -- highlight if the text under the mouse is linked: > if the mouseChunk is not empty \ > and "link" is in the textStyle of the mouseChunk then > set the backgroundColor of the mouseChunk to "yellow" > -- saved for later unhighlighting > put the mouseChunk into storedHilitedChunk > end if > pass mouseMove > end mouseMove > > on mouseLeave > -- unhighlight any currently highlighted text: > if storedHilitedChunk is not empty then > do "set the backgroundColor of" && \ > storedHilitedChunk && "to empty" > put empty into storedHilitedChunk > end if > pass mouseLeave > end mouseLeave > ---------- > > -- > Jeanne A. E. DeVoto ~ [EMAIL PROTECTED] > Runtime Revolution Limited - The Solution for Software Development > http://www.runrev.com/ > > > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution _____________________________________ Toma Tasovac Princeton University Department of Comparative Literature 318 East Pyne Princeton, NJ 08544 [EMAIL PROTECTED] [EMAIL PROTECTED] _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
