Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdahl!apple!darin From: darin@Apple.COM (Darin Adler) Newsgroups: comp.sys.mac.programmer Subject: Re: MultiFinder switch bug with custom WDEFs Message-ID: <9462@apple.Apple.Com> Date: 10 May 88 02:26:16 GMT References: <242@uvabick.UUCP> <8700@apple.Apple.Com> <2887@midas.TEK.COM> <9332@apple.Apple.Com> <2770@polya.STANFORD.EDU> <9364@apple.Apple.Com> <2781@polya.STANFORD.EDU> Reply-To: darin@apple.UUCP (Darin Adler) Organization: Apple Lines: 27 Keywords: MultiFinder doesn't allow switching when it thinks it sees a dBoxProc In article <2781@polya.STANFORD.EDU> kaufman@polya.stanford.edu (Marc T. Kaufman) writes: > In article <9364@apple.Apple.Com> darin@apple.UUCP (Darin Adler) writes: > >In article <2770@polya.STANFORD.EDU> (Marc T. Kaufman) writes: > .> One of the main reasons for using modal dialogs where modeless dialogs > .> would do, is the availability of the Dialog Manager for handling most of > .> the buttons, switches, and events. > > >Absolutely untrue! IsDialogEvent, NewDialog, and GetNewDialog can all be used > >with modeless dialogs. > > OK, I agree that GetNewDialog and NewDialog can be used for modeless dialogs, > but the important thing is that the DLOG resource has no way of specifying > a window type other than modal-dialog. You are confusing windowKind with the window definition ID of a window. Dialogs have a windowKind of 2 (dialogKind), and normal application windows have a windowKind of 8. MultiFinder looks at the window definition ID to decide whether or not to switch. This is the value that determines what a window looks like, but it has *nothing* to do with the Dialog Manager. The reason that the definition ID is checked is that it determines how the window appears; if it looks to the user like it should be modal, MultiFinder makes it modal by ignoring attempts to switch. This has little to do with managing modeless dialogs with the Dialog Manger. -- Darin Adler AppleLink:Adler4 UUCP: {sun,voder,nsc,mtxinu,dual}!apple!darin CSNET: darin@Apple.com