home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gsnd
- set gsnd to the soundLevel
- if gsnd = 0 then
- set the soundLevel to 1
- end if
- if the machineType <> 256 then
- initrearwindow()
- end if
- end
-
- on initrearwindow
- global rwobj
- if factory("MovieUtilities") = 0 then
- openXLib(the pathName & "RearWindow.XObj")
- end if
- if objectp(rwobj) then
- rwobj(mdispose)
- end if
- makeobjifneeded()
- set retvalue to rwobj(mpattowindow, -5)
- end
-
- on makeobjifneeded
- global rwobj
- if not objectp(rwobj) then
- set rwobj to rearwindow(mnew, "M")
- if value(rwobj) < 0 then
- alert("System error" && rwobj && "trying to create the RearWindow object in RAM (multiple-monitor config).")
- exit
- end if
- writestageandscreenbounds()
- if the freeBlock < rwobj(mgetmemoryneeded) then
- if objectp(rwobj) then
- rwobj(mdispose)
- set rwobj to rearwindow(mnew, "S")
- end if
- if value(rwobj) < 0 then
- alert("System error" && rwobj && "trying to create the RearWindow object in RAM (single-monitor config).")
- exit
- end if
- writestageandscreenbounds()
- end if
- end if
- end
-
- on writestageandscreenbounds
- global rwobj
- set s to "Minimum Rect around All Screens:"
- set s to s && rwobj(mgetscreentop) & ", "
- set s to s && rwobj(mgetscreenleft) & ", "
- set s to s && rwobj(mgetscreenbottom) & ", "
- set s to s && rwobj(mgetscreenright) & RETURN
- set s to s & "Stage dimensions are:"
- set s to s && the stageTop & ", "
- set s to s && the stageLeft & ", "
- set s to s && the stageBottom & ", "
- set s to s && the stageRight
- end
-