Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!voder!pyramid!octopus!vsi1!daver!dlb!netcomsv!rcb From: rcb@netcom.COM (Roy Bixler) Newsgroups: comp.sys.atari.st.tech Subject: Re: saving screen in a GEM app. Message-ID: <1991Apr25.193606.6530@netcom.COM> Date: 25 Apr 91 19:36:06 GMT References: <2991@shodha.enet.dec.com> <981@uqcspe.cs.uq.oz.au> Organization: Netcom - Online Communication Services UNIX System {408 241-9760 guest} Lines: 35 warwick@cs.uq.oz.au writes: >You asked about setting your own desktop object, here's how: > >First, to set an object as the new desktop: >(note, this is hacked from Modula-2, so beware) > >NewDesk=14 >rsrc_gaddr(tree,FormNumber,&Form); >wind_set(0,NewDesk,Form,0); > >To go back to the original desktop: > >wind_set(0,NewDesk,0,0); I tried this and it worked fine. I will do this, but as an alternative, I could go back to what I was doing before (redrawing my original object when the dialog is finished). It's just a lot nicer to have system support, instead of having to program everything yourself. > > >Warwick. >-- > _-_|\ warwick@cs.uq.oz.au > / * <-- Computer Science Department, > \_.-._/ University of Queensland, > v Brisbane, AUSTRALIA. Thanks very much! -- Roy Bixler rcb@netcom.com -or- (UUCP) uunet!apple!netcom!rcb "Just when you think you know it all, it changes!"