Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!olivea!tardis!tymix!uunet!cbmvax!cbmehq!cbmfra!swinjm!forgeas From: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Newsgroups: comp.sys.amiga.programmer Subject: Re: intuition help wanted... Message-ID: <194b43db.ARN0eb1@swinjm.UUCP> Date: 13 Jun 91 14:36:11 GMT Article-I.D.: swinjm.194b43db.ARN0eb1 References: <1991Jun10.092301.5350@vax5.cit.cornell.edu> Reply-To: forgeas@swinjm.UUCP (Jean-Michel Forgeas) Followup-To: comp.sys.amiga.programmer Organization: The Software Winery Lines: 50 In article <1991Jun10.092301.5350@vax5.cit.cornell.edu>, kxgj@vax5.cit.cornell.edu writes: > [...]I currently accomplish this by MoveWindow* (to upper left), SizeWindow* (to > full [or on return to small] size), WindowToFront*, SetRast*, RedrawWindowFrame* Guess that MoveWindow* and SizeWindow* would have a chance to execute faster if you WindowToFront* before them (because of layers). > [...]expect. Typically, part of the graphics in GraphicCalls (my own...) are > drawn as if the window had not been resized yet. It is not consistent in that > sometimes all of the graphic calls are sized incorrectly, sometimes part and > at others, all are correct. I've stabilized the behavior by adding MakeScreen* > and RethinkDisplay* after each of the system calls above but I don't think that > this should be necessary. [...] > > My specific questions: > 1. What is causing the problem and are the MakeScreens and RethinkDisplays > the appropriate fix? If so, does this imply that I should do them > after each system call such as these? All you have with these two calls is time, doing some Delay() could act as well: Intuition get enough time to resize the window before your draw into it. > 2. Is there a better way to approach the window resizing function that > I want? The SizeWindow() call does not resize your window but tells Intuition to resize it. See the autodocs: "Note that the Window will not be sized immediately" You could do this way: - SizeWindow(), - Wait() or WaitPort() for the NEWSIZE message class from Intuition, - draw into the window with graphic calls. > 3. What is the best refresh flag to set for the window(s) in this > situation? I think I am using SMARTREFRESH (oh, for a memory that > worked...). As a user my preference is that you set SMARTREFRESH. I don't like when redrawing windows take too much time :-) > Kirk -- \___/ Jean-Michel Forgeas \-/ cbmvax!cbmehq!cbmfra!swinjm!forgeas | The Software Winery -^- And, where is the universe ?