Neat LinkClicked tip...
Jerry Daniels
jerry at daniels-mara.com
Tue Apr 18 01:39:24 EDT 2006
Chipp,
Sorry i'm late with this comment, but I said "the textStyle of the
clickChunk" or clickCharChunk. If you've used clickCharChunk earlier
in the handler, i believe you have to use something like
mouseCharChunk or mouseChunk.
Jerry
Buy Constellation from Runtime Revolution!
http://revstudio.runrev.com/section/revselect/constellation/
On Apr 17, 2006, at 5:59 PM, Chipp Walters wrote:
> 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
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list