hilite, double-click etc.
Toma Tasovac
ttasovac at Princeton.EDU
Tue Oct 1 13:21:02 EDT 2002
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" <jeanne at runrev.com> 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 ~ jeanne at runrev.com
> Runtime Revolution Limited - The Solution for Software Development
> http://www.runrev.com/
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
_____________________________________
Toma Tasovac
Princeton University
Department of Comparative Literature
318 East Pyne
Princeton, NJ 08544
ttasovac at princeton.edu
ttasovac at post.harvard.edu
More information about the use-livecode
mailing list