dillon@CORY.BERKELEY.EDU.UUCP (03/01/87)
Well, the Sony Monitor (KV1311) definately DeGauses on power up, but the monitors that *really* pull the amps on de-Gause power up are those Prinston Graphics monitors used mainly with IBM's..... we had one connected to a telemetry system's UPS and the thing tripped the overcurrent protection! Hey! I think it's really neat that something like this hack to increase the size of the workbench window can come along and be totally compatible! Another reason I'm so excited about the program is due both to the simplicity of it, and the fact that the Video Hardware and the OS are flexable enough to be able to handle it trivialy. Just try doing that on an Atari or Mac! Word of Warning: Now that you all know the workbench screen can be made bigger, be sure NOT to fall into any software traps in terms of initial windows. This goes especially to those programs which can resize windows under script control. They should check the window's screen's Width and Height variables instead of making assumptions. Those programs which allow the user to resize the window should set maximums to -1 (e.g. Huge) instead of '640' and '200' (that is, assuming they can handle it). Most programs generally do this already. There is some room for improvment for those programs which currently get '80 column' windows by openning the window BORDERLESS (e.g. Terminal Emulators). Rightly, they should check to see if the screen is big enough to accomodoate the requested # of columns and rows with borders first, then without. To make things really work well, you should also use the textfont tf_XSize and tf_YSize: (get max window size you can open) maxwidth = Window->WScreen->Width; maxheight= Window->WScreen->Height; (get current window settings) winwidth = Window->Width - Window->BorderLeft - Window->BorderRight; winheight= Window->Height- Window->BorderTop - Window->BorderBottom; wincols = winwidth / Window->RPort->Font->tf_XSize; winrows = winheight/ Window->RPort->Font->tf_YSize; I think it's a fair assumption that a normal program using the so called 'default' font will get a constant-width/constant-height font rather than a variable-width/variable-height font. The question is what to do with the border variables. I generally open a 'default' window before beginning to process user commands or script files and get the border variables from that. I then assume that openning or reopenning another window with the same FLAGS will use the same border variable sizes and thus I can calculate the window width and height I would need to get a certain number of rows and columns for later windows before hand. -Matt