This is a  better toggle script but the problem now is that it is SLOW
on mouseDown
  global dx, dy
  set lockmessages to true
  put mouseLoc() into mousePos
  put the loc of me into buttonPos
  put item 1 of buttonPos - item 1 of mousePos into dx
  put item 2 of buttonPos - item 2 of mousePos into dy
end mouseDown

on mouseStillDown
  global dx, dy
  set lockmessages to true
  get mouseLoc()
  put the mouseH into x
  put the mouseV into y
  repeat until the mouse is up
    put the mouseLoc into newLoc
    set the  height of group "My Group" to y
    set the  width of group "My Group" to y
  end repeat
  add dx to item 1 of it
  add dy to item 2 of it
  lock screen
  set the location of me to it
  set the bottomRight of group "My Group" to the left of me, the bottom of 
me-1
  
end mouseStillDown

Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to