Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!csd4.milw.wisc.edu!nic.MR.NET!umn-cs!hall!rosenkra From: rosenkra@hall.cray.com (Bill Rosenkranz) Newsgroups: comp.sys.atari.st Subject: Re: where is gem desktop resource? Message-ID: <12448@hall.cray.com> Date: 4 Jan 89 04:16:26 GMT References: <12375@hall.cray.com> <1274@atari.UUCP> <374@cmpfen.UUCP> Reply-To: rosenkra@hall.UUCP (Bill Rosenkranz) Organization: Cray Research, Inc., Mendota Heights, MN Lines: 27 In article <374@cmpfen.UUCP> bob@cmpfen.UUCP (Bob Breum) writes: =In article <1274@atari.UUCP> mui@atari.UUCP (Derek Mui) writes: =>in article <12375@hall.cray.com>, rosenkra@hall.cray.com i said: =>> the AES wind_set() call to replace the desktop works just fine. but how =>> can you set it back to what it was after a program exits? if allan's => => There is no function call to get the resource of the desktop. When an =>application makes a wind_set(WF_NEWDESK) call, it doesn't need to reset it =>back when it exits. When control returns to the desktop, the original =>background will be restored. thank you, derek... =This is correct as far as it goes. But there is a legitimate need to reset =the revised desktop when the program has been called from a shell. Otherwise, =the AES will attempt to redraw the specified desktop, but the resource for =that desktop will have been released at the time that the program terminated. =It is my understanding, although I haven't tried it, that wind_set(WF_NEWDESK) =with an address of 0 will reset the desktop. = thank you, bob. yes, i found this undocumented trick out in the last atari developer's newsletter. if allan's listening, is there any chance of this becomming "official"? seems like a mighty useful tool... -bill ---