I think you need to put FLUSHWINDOWBUFFER just before the each delay statement On Aug 11, 2005, at 9:07 PM, Chuck S. wrote: > Greetings and perhaps apologies, > > I'm a research psychologist and a very unskilled > self-taught programmer. I've been away from > programming for a couple of years and am now beginning > to get acquainted with FB^4 and programming in OSX. > (The last time I wrote code it was with FB^3 to run > under OS 9). I'm sure I will have many questions, but > I'll try not to over-burden this list with a > near-novice's growing pains. > > Here's my first question: > > When I compile the following for OS 9 (PPC), it > displays one PICT resource (bicycle000) for 5 seconds > and then shows the other (bicycle100) for 5 seconds -- > which is what I want the program to do. When compiled > for Carbon, a blank window opens and 10 seonds later, > when the program stops, the second PICT appears in the > window. > > I must not be looking in the right places, because I > haven't found the explanation yet. Is there a *simple* > change by which I can get the 2 PICTS to display for 5 > seconds each under Carbon as under OS 9? > > > WINDOW 1, , (0,0) - (640,480), _dialogPlain > > DIM gPicHandle AS HANDLE > DIM r AS RECT > DIM N$ > SetRect(r, 20, 40, 620, 440) > > N$ = "bicycle000" > PICTURE FIELD 1, N$, @r, _pfNoFramed, _scaledPict > DELAY 5000 > > N$ = "bicycle100" > PICTURE FIELD 1, N$, @r, _pfNoFramed, _scaledPict > DELAY 5000 > > STOP > > > Thank you!!! > > Chuck > > > > > > > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs > > > -- > >