Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Dave's 3D engine V7.1
Keycode
Play Sound of Member
simINET Xtra
Back Button
Play MPEG with MCI commands
LiveCD
Inside Macromedia Director 6 with Lingo with CDROM
Wait for MPEG with MCI commands
Help Pad
MediaMacros Xtras Mall
 

 

 

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

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail