Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!mailrus!cornell!uw-beaver!rice!titan!phil
From: phil@titan.rice.edu (William LeFebvre)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Finding The Workbench Screen
Summary: Sure am glad they told us about it!
Message-ID: <2238@kalliope.rice.edu>
Date: 30 Nov 88 04:07:05 GMT
References: <6356@netnews.upenn.edu> <79135@sun.uucp>
Sender: usenet@rice.edu
Reply-To: phil@Rice.edu (William LeFebvre)
Distribution: na
Organization: Rice University, Houston
Lines: 28

In article <79135@sun.uucp> cmcmanis@sun.UUCP (Chuck McManis) writes:
>In article <6356@netnews.upenn.edu> (R. Bhatnagar) writes:
>> How can I find the screen structure for the current Workbench
>> Screen short of opening a window on it and then looking in
>> the Window structure?
>
>Use the 1.2 function GetScreenData().
>...

I'm glad this discussion came up, because just today I needed to do this
very thing. But I sure can't find any documentation on this function at
all.  It isn't in the RKMs and I can't find it in the autodocs.  Is it
hiding somewhere or is it un-documented?  If the latter, is it intended
for anyone's use?

As for *why* I need it:  I need to know the height of the default font
before I open a window (the Left and Top Edges and some Borders depend on
it).  Is there any other way to get it besides getting the workbench's
struct Screen and using Screen->Font->tf_YSize?  I suppose I could open
the window without gadgets (well, the system gadgets will be there of
course), get the YSize from the rastport, set up my gadgets and then add
them, but it just seems nicer to me to have the gadgets ready when I open
the window....

			William LeFebvre
			Department of Computer Science
			Rice University