dmittman@beowulf.JPL.NASA.GOV (David Mittman) (12/13/90)
Anyone have any idea about how to change the width of script windows under HyperTalk control? The Scenario I am tired of having my script windows open up showing less than 80 columns of Monaco 12. The Possible Solutions 1) Modify a resource which contains the default script editor window width, possibly in the ScriptEditor XCMD. Any ideas? 2) Use a HyperTalk command along the lines of "set the width of window X to Y" where X is the approriate window accessing code; somewhat like set the rect of window "variable watcher" to "0,0,599,400" Thanks in advance. - David Mittman DMittman@Beowulf.JPL.NASA.GOV
jkc@Apple.COM (John Kevin Calhoun) (12/13/90)
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.