mouseLeave and linked text question
mdswindell at charter.net
Fri Feb 18 14:48:26 CST 2005
Can someone explain the following? In the script below, in the first
if/then structure, the mouse moving away from a piece of linked text
causes the backgroundColor of that linked text to reset to empty. But
the mouse is only moving off the linked text, not out of the field.
This makes me think a piece of linked text is a control which receives
a mouseLeave message. Is this correct?
But then with the repeat structure below that, only by the mouse
actually leaving the field does the backgroundColor of all lines reset
to empty. Which leads me to think that the linked text it was hovering
over was not a control.
How does this work?
-- unhighlight any currently highlighted text:
if storedHilitedChunk is not empty then
do "set the backgroundColor of" && \
storedHilitedChunk && "to empty"
put empty into storedHilitedChunk
repeat with y = 1 to 3
repeat with x = 1 to the number of lines of field y
set the backgroundColor of line x of field y to empty
More information about the use-livecode