Path: utzoo!attcan!uunet!lll-winken!ames!nrl-cmf!ukma!gatech!mcdchg!chinet!saj From: saj@chinet.chi.il.us (Stephen Jacobs) Newsgroups: comp.sys.atari.st Subject: Re: Who have I clobbered? (GEM windows) Summary: Here's the answer Keywords: GEM redraw rectangle Message-ID: <7839@chinet.chi.il.us> Date: 1 Mar 89 04:11:34 GMT References: <7829@chinet.chi.il.us> Organization: Chinet - Chicago, Ill. Lines: 14 I asked how to pass redraw messages to applications whose windows I had scribbled in. Hedley Rainnie posted a piece of code that handled dialog closing properly, and Greg Anderson explained it. In summary, GEM doesn't know about the scribbling, but the correct form_dial() call tells GEM to send redraw messages. I looked at my code, and the problem was that I ended the dialog handler with form_dial(FMD_FINISH, cx, cy, cw, ch, 0, 0, 0, 0);. Apparently this only sends a redraw to a null rectangle rather than the one defined by cx cy cw ch. The fix is then apparent. It appears from the documentation I have that DR defined this call as taking only one rectangle as an argument, but wrote the code to require two. As a result, the documentation available is not quite clear enough to penetrate the cotton in my head. (By the way, I use MWC). Steve J.