Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!wolff From: wolff@cs.purdue.EDU (Robert M. Wolff) Newsgroups: comp.sys.amiga.tech Subject: Re: Determining Window Border Widths Message-ID: <6678@medusa.cs.purdue.edu> Date: 30 Apr 89 07:42:12 GMT References: <8904291926.AA19974@hermes.berkeley.edu> Organization: Department of Computer Science, Purdue University Lines: 27 From article <8904291926.AA19974@hermes.berkeley.edu>, by dillon@HERMES.BERKELEY.EDU (Matt Dillon): > [....] > Or, how about this: Open a BACKDROP|SIMPLE_REFRESH window with the > pens set to 0 so very little shows up on the screen, get the borders or > whatever else, then close the BACKDROP window, then open your normal window. > This method has the advantage of not taking much memory. > [....] > -Matt I assume you want dOvo know the maximum width/height of the 'preferences' screen? Well, in vt100v2.x they do it a nice little way... The way is to open 'gfxbase' and then there are two pointers in the GfxBase structure. They are maximums for both width and height. They will be there for you...I forgot the variable names...been a while... Just look in the includes and then write a REAL simple program to printf the GfxBase->(variable) out to stdout and see what they are...that is how I open a window on workbench in a post-it program I am working on. bob -- -=-=-=- Insert Standard Disclaimer Here, Please... -=-=-=- /************* MS-Dos? Me? No, You must be mistaken! *************/