Article View: comp.sys.amiga.tech
Article #10398Re: Finding The Workbench Screen
From: Fabbian G. Dufoe
Date: Sun, 27 Nov 1988 16:15
Date: Sun, 27 Nov 1988 16:15
36 lines
1766 bytes
1766 bytes
From article <6356@netnews.upenn.edu>, by ranjit@eniac.seas.upenn.edu (R. Bhatnagar):
> 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? Mostly I want to find its size so I can
> open another of the same size.
It's something easy, but it's not easy to find. You need to call
Success = GetScreenData(Buffer, Size, Type, Screen)
Where
BOOL Success;
CPTR Buffer;
USHORT Size;
USHORT Type;
struct Screen *Screen;
This function copies into the caller's buffer data from a screen
structure. Typically, this call will be used to find the size, title bar
height, and other values for a standard screen, such as the Workbench
screen.
To get the data for the Workbench screen, one would call
GetScreenData(buff, sizeof(struct Screen), WBENCHSCREEN, NULL)
Note: If the requested standard screen is not open, this function will have
the effect of opening it.
To read about GetScreenData() in the Autodocs, start reading about
GetPrefs(). Because of something wrong with the file GetScreenData doesn't
show up in the outline. You have to page through the GetPrefs() section to
find it.
--Fabbian Dufoe
350 Ling-A-Mor Terrace South
St. Petersburg, Florida 33705
813-823-2350
UUCP: ...codas!usfvax2!jc3b21!fgd3
...uunet!pdn!jc3b21!fgd3
Technical Details
Message-ID:
<509@jc3b21.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!boake2!jc3b21!fgd3References:
<6356@netnews.upenn.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pdn!boake2!jc3b21!fgd3 From: fgd3@jc3b21.UUCP (Fabbian G. Dufoe) Newsgroups: comp.sys.amiga.tech Subject: Re: Finding The Workbench Screen Message-ID: <509@jc3b21.UUCP> Date: 27 Nov 88 16:15:51 GMT References: <6356@netnews.upenn.edu> Distribution: na Organization: St. Petersburg Jr. College, FL Lines: 36