🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Window to front/back

#12134
From: Steve Schoettler
Date: Fri, 07 Apr 1989 20:45
24 lines
1516 bytes
In article <12073@pasteur.Berkeley.EDU> Richard writes:
>One feature I would like to have is, if there is only one window on a
>screen, that that window's "to front" & "to back" gadgets would act as
>*screen* to front/back gadgets, rather than being useless.

One off the shelf way to do this is to use dmouse, and make sure all windows
start one pixel down from the top of the screen.  Then click both mouse buttons
at the top pixel and you toggle screens!

I think the easiest way to reprogram your gadgets would be to stick a handler
into the input event chain, watching for the window gadget selection, and
calling ScreenToFront(), etc., if appropriate.  If not, pass the event down
the chain for Intuition to do the appropriate thing.
The commodities.library disk from Jim Mackraz has some cookbook routines
to help out with this.

Steve

-- 

        Steve Schoettler
        shs@uts.amdahl.com
        {sun,decwrl,pyramid,ames,uunet}!amdahl!shs
        Amdahl Corp., M/S 213, 1250 E. Arques Ave, Sunnyvale, CA 94088
Technical Details
Message-ID: <16Pys51As71010TneSY@amdahl.uts.amdahl.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!amdahl!shs
References: <12073@pasteur.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!amdahl!shs
From: shs@uts.amdahl.com (Steve Schoettler)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Window to front/back
Message-ID: <16Pys51As71010TneSY@amdahl.uts.amdahl.com>
Date: 7 Apr 89 20:45:26 GMT
References: <12073@pasteur.Berkeley.EDU>
Reply-To: shs@amdahl.uts.amdahl.com (Steve Schoettler)
Organization: Amdahl Corporation, Sunnyvale CA
Lines: 24