🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #36245

Modal dialogs vs. layer switching

#36245
From: Amanda Walker
Date: Wed, 11 Jan 1989 18:25
20 lines
1415 bytes
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...
Technical Details
Message-ID: <878@lts.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lts!amanda
References: <1988Dec16.191309.21623@cs.rochester.edu> <326@internal.Apple.COM> <23343@apple.Apple.COM> <482@pyuxf.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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