set the cursor to hand when on links
André.Bisseret
Andre.Bisseret at inria.fr
Wed Jan 18 09:19:20 EST 2006
Bonjour Éric,
and thanks a lot for your quick answer ; "magnifique" ; your set of
handlers is very nice and works perfectly.
I must familiarize with "switch, case and break" which, if I am not
wrong, did not exist in HyperCard.
Le Wednesday, 18 Jan 2006, à 13:27 Europe/Paris, Eric Chatonet a écrit :
>
> FYI: Your script does not work because the mouseText can be empty then
> the style of the mouseText = the style of nothing and you get an error
> :-)
> Right?
Not really ! because when I put the following handler directly in the
script of a fld that includes links it works well :
-------------------------------
on mouseWithin
if the textStyle of the mouseText is "link" then
set the lockCursor to true
set the cursor to hand
else
set the lockCursor to false
end if
end mouseWithin
-------------------------------
I mean, the "else" part include (and accepts without error) the case
where the mouseText is empty.
It was when I put such an handler in the stack script (with "if word 1
of the target is "field") that it did'nt work !!??
Anyway my problem is solve and again, thank you very much !
"Bien cordialement" from Grenoble
André
More information about the use-livecode
mailing list