🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A way to Deactivate a Window After it has been Activated??

#12761
From: Matt Dillon
Date: Fri, 19 May 1989 14:06
18 lines
1256 bytes
:I've got a program that has multiple windows open at the same time, and I want
:to make sure that the "main" window is always the active window and NOT one of
:the other "informational" windows.. If the user selects one of these other
:windows, is there a way to DeSelect it and return control to the main window??
:I've already got it so that it will detect when the window has been activated,
:but I can't deactivate it as of yet.. 
:
:Thanks in advance...

	You can always call ActivateWindow() when you get the ACTIVEWINDOW
IDCMP in one of the informational windows, but doing that sort of munging 
will interfere with autopoint programs like DMouse which always try to set
the window under the mouse to the active one.

	Better to have a shared IDCMP port for all the windows and not 
bother forcing one to be active over the others.

				-Matt
Technical Details
Message-ID: <8905191406.AA15536@postgres.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!ukma!tut.cis.ohio-state.edu!ucbvax!POSTGRES.BERKELEY.EDU!dillon
From: dillon@POSTGRES.BERKELEY.EDU (Matt Dillon)
Newsgroups: comp.sys.amiga.tech
Subject: Re: A way to Deactivate a Window After it has been Activated??
Message-ID: <8905191406.AA15536@postgres.Berkeley.EDU>
Date: 19 May 89 14:06:16 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 18