Restricting graphics to a field?

Doug Lerner doug at webcrossing.com
Sat Jan 17 01:18:23 EST 2004


Another "almost but not quite":

on mouseMove
  if the target is "field " & quote & "canvas" & quote then
    choose graphic tool
  else
    choose browse tool
  end if
end mouseMove

This one gets unbearably close to what I want. The weird thing is, *just* in
the canvas field, the mouseMove messages seems to get sent twice! Once for
the field and once for the card in which the field is in. So it bounces
between the graphic and browse tool.

Why would the message be sent twice - once for the field and once for the
card which the field is in? But only for that one field!

doug



More information about the use-livecode mailing list