Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!hsdndev!bunny!bunny.gte.com!CAH0 From: CAH0@bunny.gte.com (Chuck Hoffman) Newsgroups: comp.sys.mac.programmer Subject: Re: UpdateEvt question Message-ID: <11367@bunny.GTE.COM> Date: 13 Jun 91 20:01:41 GMT References: <6446@ns-mx.uiowa.edu> Sender: news@gte.com Organization: GTE Laboratories, Inc. Lines: 35 In article <6446@ns-mx.uiowa.edu> wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) writes: > I catch the update event, check which window via > FindWindow(Where). Then use if structure to see which > window to update (as each may be different). Then I do > what is need to update the window. > > Catch: > > The window only actually gets updated when the mouse > passes into the windows content region. And it will keep > repeating the update until the mouse is moved out. This > occurs even when the window doesn't need updating any longer. The repeating update tells you that the update has not been satisfied. Your BeginUpdate and EndUpdate must be for a different window or GrafPort. > I catch the update event, check which window via > FindWindow(Where). Use the message field of the event record instead. For an update event, this will be a pointer to the proper window. FindWindow would only tell you where the mouse is. Then be sure to select the window or do something else to set the GrafPort to the window you want before doing the Begin/EndUpdate. Good luck. I have some code I can send if you need it. Chuck Hoffman, GTE Laboratories, Inc. | I'm not sure why we're here, cah0@bunny.gte.com | but I am sure that while we're Telephone (U.S.A.) 617-466-2131 | here, we're supposed to help GTE VoiceNet: 679-2131 | each other. GTE Telemail: C.HOFFMAN |