Hi Daniel,

Here is a little script that you can attach to a sprite in your MIAW.
Clicking and dragging on that sprite will let you move the MIAW around.

I am not sure about the minmizing of a MIAW, but check out appMinimize in
the Director help. It might be what you are looking for.

//Martin
----------------------
property pActive
property pMouseH
property pMouseV
property windowRect


on beginsprite me
  windowRect = the rect of window("Your window name")
  pActive = false
end

on mousedown me
  pMouseH = the mouseH
  pMouseV = the mouseV
  pActive = true
end

on mouseup me
  pActive = false
end

on rightMouseDown me
  pActive = false
end

on rightMouseup me
  pActive = false
end

on mouseupoutside me
  pActive = false
end

on exitframe me
  if pActive then
    dH = the mouseH - pMouseH
    dV = the mouseV - pMouseV
    temp = windowRect
    temp.left = temp.left + dH
    temp.top = temp.top + dV
    temp.right = temp.right + dH
    temp.bottom = temp.bottom + dV

    set the rect of window("Your window name") = temp
  end if
end
-------------------------



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to