arggh... what handler to use on an unlocked text field?
Josh Mellicker
josh at dvcreators.net
Mon Apr 17 19:27:28 EDT 2006
Just found this info, trying now...
If you want to click a link in an unlocked field, you need to use the
selectionchanged handler, rather than the linkClicked handler. It is a
little more complicated to use:
on selectionChanged
put the selectedchunk into tChunk
if tChunk = empty or word 4 of tChunk >= word 2 of tChunk then exit
selectionChangedd
put the linktext of the selection into tLink
revGoUrl tLink
end selectionChanged
On Apr 17, 2006, at 4:20 PM, Josh Mellicker wrote:
> I understand that mouseUp and mouseDown messages don't work on an
> unlocked text field...
>
> so how do you trigger a script when the user clicks in the field?
>
> I could make them double-click, or right click... but I can't get
> any handler to go... : (
>
>
> I'm trying to avoid stuff that generates tons of real-time messages
> (like mouseEnter (although that works))
>
> -the noob
> _______________________________________________
> 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