CompuServe Thread

#Initial window size

7 messages in this thread
#90885From: Bill Christens-BarryOct 24, 1987 7:47 PM
I have a number of programs, PD and otherwise, which open (when run) with somewhat inconvenient window sizes. I'd like to be able to set the initial window size for these to a more convenient size, usually to fill the entire screen. Some of these programs have .info files, some do not. Is there a simple, universal, and permanent method to adjust the window size which occurs upon running the program? I don't want to have to hack very deeply; I'm mainly a user who runs everything from cli. Thanks in advance Bill C-B
#90892From: Bob RakoskyOct 24, 1987 8:47 PM
Bill, There is no 'universal' way to control the size of a window opened by a program. This is specified when in the NewWindow structure used by the program when it requests that Intuition open the window. This structure is usually contained in the program's data segment(s), but not always, and will not be in any fixed location (from program to program). Not an easy hack, especially without getting into the bowels of the program. Sorry this isn't the answer you want to hear, but it is the way it is. ..Bob
#90979From: Bill Christens-BarryOct 25, 1987 1:55 PM
Bob, Thanks for the (disappointing) news. I feared that this would be the case. I imagine that one might occasionally luck out and find it convenient to alter the size of the initial window, but that usually this wouldn't happen. I'm not sure, but isn't it true that when one opens a file via its icon (using WB of course) that what actually occurs is that the commands in the file's associated info file are executed? Wouldn't it be nice if, under cli, a setup file were executed which contained standard initialization routines (such as the window sizing). One would then have a reliable way to alter the applications colors, fonts, window sizes, etc.whoa, what's going on here? Bill C-B
#91005From: BILL LEACHOct 25, 1987 7:37 PM
Bill: Am interseted in the progress of this thread. Seems as though what you are saying is correct. There must be a way to get a program to 'run' another program and pass along the info file data. Some kind of intuition calls maybe? 73, bill
#91028From: Bob RakoskyOct 25, 1987 9:25 PM
There is no 'standard' way for this info to be passed to a program. I as a programmer could design and code the means in my program to determine the user's desires based on command-line-arguments, tool-type parameters set as part of the program's icon (for workbench invocation), or to be read in from a config-file. In all cases, I would have to design this interface specific to my program and do the coding accordingly. It can be done, and probably should be in some cases. In other cases, I think that it's more bother than it's worth, and would rather spend the time developing more 'useful' features. Just an opinion, and without a specific case in point, I'll leave it at the 'general' level. ..Bob
#91029From: John DraperOct 25, 1987 9:26 PM
Bill, As far as I know there is no universal way to pass the initial window size to a program. Using NewZAP, you can sometimes make modifications if the program uses a "CON:" window, but more often than not, the window size is determined by numbers in a NewWindow struct, and of course they are stored in binary which makes them a lot harder to find. Regards, Larry.
#91046From: Vic WagnerOct 25, 1987 11:46 PM
Bill, Unfortunately that isn't the case. It's a bit more complicated than that.