🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12431

Re: Determining Window Border Widths

#12431
From: Robert M. Wolff
Date: Sun, 30 Apr 1989 07:42
27 lines
1536 bytes
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! *************/
Technical Details
Message-ID: <6678@medusa.cs.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!wolff
References: <8904291926.AA19974@hermes.berkeley.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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