Neat LinkClicked tip...

Chipp Walters chipp at chipp.com
Mon Apr 17 18:59:54 EDT 2006


Below is an email from Trevor to this list, confirming the linkClick bug.

It basically doesn't always 'fire'. Just try clicking around in the docs 
sometimes and you'll see what I mean. Or, just create your own stack and 
set the htmlText of a locked field to:

<p><a name="apple">link to </a><a href="apple">www.apple.com</a></p>

then put in the script of the same field:

on linkClicked p
   answer p
end linkClicked

Now, try clicking it a few times. In my case (WinXP), it misses about 1 
out of 3 trys. Might have something to do with not clicking anywhere on 
the letters.

After talking some with Jerry, came up with this work-around (thanks 
Jerry!) (put this in the field instead of on linkClicked)

on mouseDown
   if the textstyle of the clickText is "link" then
     --> DO LINKCLICKED STUFF HERE
     answer the linkText of the clickText
   end if
end mouseDown


I've entered it as Bug 3533
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3533

If you'd like to throw votes at it, be my guest.
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3533

-Chipp

Trevor DeVore wrote:
> On Apr 12, 2006, at 11:47 PM, Chipp Walters wrote:
> 
>> I try and use the clickChar rather than the linkedText when I can.  I 
>> find the linkedText doesn't always 'fire' on WinXP. Anyone else  have 
>> similar experience? Sometimes it takes me up to 3 clicks to  get it to 
>> fire.
> 
> 
> Chipp,
> 
> I've seen this as well.  You just sit there and click until the  
> linkClicked message decides it wants to fire.
> 

-- 
--------------
Chipp Walters
www.altuit.com




More information about the use-livecode mailing list