Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!aplcen!haven!umd5!zben From: zben@umd5.umd.edu (Ben Cranston) Newsgroups: comp.sys.mac.programmer Subject: Re: Changing ICONs on the fly in dialogs Summary: Toolbox NEVER changes thePort for you... Message-ID: <6211@umd5.umd.edu> Date: 5 Mar 90 22:24:19 GMT References: <391@fornax.UUCP> Reply-To: zben@umd5.umd.edu (Ben Cranston) Distribution: na Organization: University of Maryland, College Park Lines: 18 In article <391@fornax.UUCP> mcdonald@fornax.UUCP (Ken Mcdonald) writes: > Inspection with the source-level debugger shows that thePort during > the dialog's existence is the same as thePort right after I start > my test shell, before the dialog is created. Is this supposed to > happen? I'm not very much up on QuickDraw and the Window Manager, > but I thought thePort would be set to the dialog's GrafPort when > the dialog was created. BAD misassumption. The Toolbox is defined NEVER to change thePort on you. Always SetPort and SelectWindow your own windows. This was my second real bad starting-up misassumption (the first was not initializing the managers). -- Sig DS.L ('ZBen') ; Ben Cranston * Network Infrastructures Group, Computer Science Center * University of Maryland at College Park * of Ulm