Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cca!mirror!ishmael!inmet!lipsett From: lipsett@inmet.UUCP Newsgroups: comp.sys.mac Subject: Missing deactivate events Message-ID: <127200007@inmet> Date: Fri, 9-Oct-87 16:33:00 EDT Article-I.D.: inmet.127200007 Posted: Fri Oct 9 16:33:00 1987 Date-Received: Mon, 12-Oct-87 21:37:07 EDT Lines: 26 Nf-ID: #N:inmet:127200007:000:1202 Nf-From: inmet.UUCP!lipsett Oct 9 16:33:00 1987 I am writing an application that requires/allows multiple windows with similar contents. While a window is active, I want to maintain the contents of the window in a data structure that is appropriate for various data manipulations. However, that form takes a lot of space, so when the window is inactive, I want to compress the data structure until the window is reactivated. So, I use the refcon field in each window to hold its compressed data. Activate events extract and uncompress the data; deactivate events compress the data and save it in the refcon field. This works fine in general. However, when I throw an alert box up on the screen, deactivate events either are not generated for the windows covered by the alert box or else the alert box toolbox routine eats them. As a result, when the alert box is dismissed, the resulting activate and update events lose badly, and either the windows are displayed wrong or I get a bomb of one kind or another. Either I am missing something obvious, or I have to call my deactivate routine explicitly before calling NoteAlert, or I am just trying to be too fancy with my refcon's, or...??? Thanks, Roger Lipsett {ihnp4,mirror}!inmet!lipsett