Page 1 of 1

Doh! Ummm, change cursor when over link in edit?

Posted: Thu Sep 10, 2009 6:57 pm
by Garrett
We really need a section for special needs people like me who many times forget even the most basic things in Rev ;-)

I know I'm going to feel stupid on this one, but...

How do I change the mouse cursor when it's over an html link in a field?

Please, go easy on me, I beg you! :-)

Thanks in advance,
~Garrett

Posted: Thu Sep 10, 2009 7:41 pm
by SparkOut
It's not as obvious as you think (to my knowledge anyway!)

This is more or less ripped off from the dictionary stack which has the hand pointer over a link chunk:

Code: Select all

on mouseMove
   get the mouseChunk
   if it is not empty and the linkText of it is not empty and the textStyle of it contains "link" then
      lock cursor
      set the cursor to hand
   else
      unlock cursor
   end if
   pass mouseMove
end mouseMove
Put this up the message path and it will handle mouseover cursor changes for the link text in fields.

Posted: Thu Sep 10, 2009 8:43 pm
by Garrett
Thank you very much SparkOut :-)