Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
cXtraTwain
PostScript Xtra
Calculating the day of the date
Whitemedia: Tool Xtras and behaviors for Director.
Simple Paint application
Go to net movie
CSS Class
Rotate Vertexlist
WinDirs XObject
Binary Opperations
 

 

 

FAQ Moving MIAWs with lingo

Added on 4/3/2001

 

Compatibilities:

This item has not yet been rated

Author: Thomas (website)

How can I make a title bar that allows the user to move my MIAW?

You can easily create a titlebar that allows the user to move your MIAW with the script below. Notice that the script does not require the MIAW to have any reference to itself - this is a general script you can use for all your MIAWs. It does not work for the Stage.


on mouseDown me
vWin = the activeWindow
mPt = the mouseLoc
origRect = vWin.rect
repeat while the mouseDown
newPt = the mouseLoc
if not inside(newPt, rect(getAt(mPt,1)-3, getAt(mPt,2)-3, getAt(mPt,1)+3, getAt(mPt,2)+3)) then
deltaPt = newPt - mPt
newRect = offset(origRect,getAt(deltaPt,1), getAt(deltaPt,2))
vWin.rect = newRect
origRect = vWin.rect
updateStage
tell the stage to updateStage
end if
end repeat
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail