Path: utzoo!attcan!uunet!lts!amanda From: amanda@lts.UUCP (Amanda Walker) Newsgroups: comp.sys.mac Subject: Modal dialogs vs. layer switching Message-ID: <878@lts.UUCP> Date: 11 Jan 89 18:25:48 GMT References: <1988Dec16.191309.21623@cs.rochester.edu> <326@internal.Apple.COM> <23343@apple.Apple.COM> <482@pyuxf.UUCP> Reply-To: amanda@lts.UUCP (Amanda Walker) Organization: InterCon Systems Corporation, Reston, VA Lines: 20 Note that inhibiting layer switches is done solely on the basis of the variation code of the front window, not whether ModalDialog is being called. Since the variation code for a dialog's window is part of the ProcID field in the dialog's DLOG resource, you should be able to go in with ResEdit or REdit and change dialogs to use, say, altDBoxProc and thus make them only modal to their own layer (since that's controlled by ModalDialog), without having to modify any application code. I think it's pretty reasonable for MultiFinder to run "defensively", since it has no way to know what the purpose of any given dialog is, and thus whether or not it should allow layer switches. Editing the ProcID field of "safe" dialogs amounts to telling MultiFinder what's going on a little bit... -- Amanda Walker ...!uunet!lts!amanda / lts!amanda@uunet.uu.net InterCon, 11732 Bowman Green Drive, Reston, VA 22090 -- Calm down; it's only ones and zeros...