Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!jkc From: jkc@Apple.COM (John Kevin Calhoun) Newsgroups: comp.sys.mac.hypercard Subject: Re: Changing the width of script windows. Message-ID: <47331@apple.Apple.COM> Date: 13 Dec 90 01:00:35 GMT References: <10717@jpl-devvax.JPL.NASA.GOV> Organization: Apple Computer Inc., Cupertino, CA Lines: 28 In article <10717@jpl-devvax.JPL.NASA.GOV> dmittman@beowulf.JPL.NASA.GOV (David Mittman) writes: >Anyone have any idea about how to change the width of script windows >under HyperTalk control? The script editor saves the locations of script windows in a HyperTalk global, "scriptWindowRects". Whenever you move, resize, or close a script window, the editor updates this global. Whenever a script is opened, it scans scriptWindowRects for a rectangle that no other script window currently occupies. The first unused rectangle becomes the boundary for the new script window. If there are no unused rectangles in scriptWindowRects, the script editor calculates a location based on screen size. You can set up your scripting environment on startUp by putting rectangles, one per line, into scriptWindowRects (and be sure to declare it as a global). For example: put "0,0,599,400" into scriptWindowRects where scriptWindowRects is a global. Kevin Calhoun HyperCard Team Apple Computer, Inc.