Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I get the slot of the main screen? Message-ID: <32680@ucbvax.BERKELEY.EDU> Date: 20 Nov 89 08:19:40 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 24 In article <334@6sigma.UUCP> blm@6sigma.UUCP (Brian Matthews) writes: >I can't figure out how to get the slot number of the main screen. Re-read the graphic device chapter of Inside Mac Vol 5. Them write code similar to: GDHandle curgd; if(world->hasColorQD){ for(curgd = GetDeviceList();curgd != NIL;curgd = GetNextDevice(curgd)){ if(TestDeviceAttribute(curgd, screenDevice) && TestDeviceAttribute(curgd, screenActive) && TestDeviceAttribute(curgd, mainScreen)){ return curgd; /* found it */ } } } } } --- According to the Constitution, the Constitution is unconstitutional: --- David Phillip Oster --U.S.Constitution I.10.1: "No State shall Arpa: oster@dewey.soe.berkeley.edu --enter into any treaty, alliance, or Uucp: {uwvax,decvax}!ucbvax!oster%dewey.soe.berkeley.edu -- confederation..."