🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting Windows of WBench

#12265
From: Jim Mackraz
Date: Fri, 21 Apr 1989 00:36
39 lines
2250 bytes
In article <261600002@trsvax> johnm@trsvax.UUCP writes:
)
)How is it possible to get access to the windows that are on a given screen?
)
)I have gotten the WorkBench screen via the GetScreenData() call and I can draw
)into its bit-planes but it doesn't do me a lot of good (basically folks, it
)trashes the screen).  After watching the mess that this produces I suddenly
)realized that I don't want to write directly into the screen...  I want to
)write into the backdrop window that the WorkBench puts back there.  Then a
)call to RemakeDisplay() should end up with everything looking hunky-dory and
)I'll be a happy camper.
)
)So, what I need to know is how to find this backdrop windows bit-planes.  Help,
)if you can and maybe we'll have another nifty screen hack before long.
)
)John Munsch

Heck, John, the way I look at it:
    If you can't to hack it, you shouldn't hack it.  ;^)

Anyway, just this once .. walk NextWindow starting with screen->FirstWindow,
looking for (Window.Flags & BACKDROP) and (Window.Flags & WBENCHWINDOW).

But I warn you: this window can be closed at any time, so unless you have
another window open on the Workbench (which will keep it from closing), you
can crash the machine real easy.  Also, that window is not your property, so
don't be bummed when your hack stops working with next release, and be
sure not to give your phone number out in case it causes somebody a big
crash and they want to tell you all about it.

By the way, once you have a window on the WB, you can use
window->WScreen->FirstWindow instead of GetScreenData().

	jimm
-- 
Jim Mackraz, I and I Computing	   	"He's hidden now, but you can see
{cbmvax,well,oliveb}!amiga!jimm          The bubbles where he breathes."
							- Shriekback
Opinions are my own.  Comments are not to be taken as Commodore official policy.
Technical Details
Message-ID: <3766@amiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!oliveb!amiga!jimm
References: <261600002@trsvax>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!oliveb!amiga!jimm
From: jimm@amiga.UUCP (Jim Mackraz)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Getting Windows of WBench
Message-ID: <3766@amiga.UUCP>
Date: 21 Apr 89 00:36:03 GMT
References: <261600002@trsvax>
Reply-To: jimm@cloyd.UUCP (Jim Mackraz)
Organization: Commodore-Amiga Inc, Los Gatos CA
Lines: 39