Unwanted tool switch

Ken Norris pixelbird at interisland.net
Sat Mar 15 22:49:01 EST 2003


Hi list

The following is a handler which loads an image, but causes the tool to
switch from Browse tool to Pointer tool. As you see I even put in a command
to switch it to the Browse tool, but it fails to execute, and the thing
switches to the Pointer tool anyway.

on mouseUp
  set the defaultFolder to "Doggies"
  lock screen
  import paint from file "Brandy1.jpg"
  set the layer of image "Brandy1.jpg" to 2
  unlock screen
  choose browse tool
end mouseUp

What should I do?

TIA,
Ken N.




More information about the use-livecode mailing list