Newsgroups: comp.sys.atari.st.tech
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!jato!vsnyder
From: vsnyder@jato.jpl.nasa.gov (Van Snyder)
Subject: Re: Windows and Events Questions -- Follow Up
Message-ID: <1991Apr26.182518.24869@jato.jpl.nasa.gov>
Reply-To: vsnyder@jato.Jpl.Nasa.Gov (Van Snyder)
Organization: Jet Propulsion Laboratory, Pasadena, CA
References: <1991Apr22.072944.1120@jato.jpl.nasa.gov>
Date: Fri, 26 Apr 91 18:25:18 GMT

I've solved half of the problems about which I previously inquired.
Answers follow:

In article <1991Apr22.072944.1120@jato.jpl.nasa.gov> vsnyder@jato.Jpl.Nasa.Gov (Van Snyder) writes:
>In ONE of several similarly designed programs, the name and info lines
>of windows get crud when another window is topped, e.g. Control Panel.
>I remember reading something to be careful about with these data, but
>I'll be damned if I can find it again!  I was careful to make both of
>them static (non-stack) strings.  Does anybody remember what to do so
>this doesn't happen?

The suspected problem was in fact the true problem:  The strings were on
the stack, so when AES re-drew the windows the address pointed at crud.
The problem was that TDI Modula makes a local copy of arguments that are
ARRAY OF CHAR if they're not VAR.

>If I create a window with WindowCreate(...Closer+InfoLine+Name...), then
>do WindowSet(...Closer+Name...) and then WindowGet(...WorkXYWH,x,y,w,h),
>the rectangle that comes back is as though the InfoLine were still there.
>The picture on the screen, and the behaviour when redrawing or topping
>verifies this.  Is there a way to make the InfoLine temporarily go away,
>or must one destroy the window and re-create it?

No answer yet.  Anybody have ideas (Allan?)

>When window B is atop window A, and window B is moved, window A is told
 (using WindowGet with FirstXYWH and NextXYWH)
>to redraw everything of it that shows.  How can one repaint just those
>parts that are newly exposed?  It's not too hard when dealing only with
>windows the program owns, but what about DA windows?

No answer yet.  Anybody have ideas?

>How can one wait for left OR right mouse button with Event<...>?
>EventButton and EventMultiple wait for left AND right mouse button down
>if the mask and button arguments are both 3.

Claus Brod answered this in <1991Apr22.154354.16919@informatik.uni-erlangen.de>

>Any help, on any question, would be appreciated.  To ensure me receiving
>it, please e-mail answers.  Of course, if you think others will be
>interested, post also.

-- 
vsnyder@jato.Jpl.Nasa.Gov
ames!elroy!jato!vsnyder
vsnyder@jato.uucp
