Re: Win32 page flipping
- Posted by jordah at btopenworld.com Jan 14, 2003
- 481 views
Hi Patrick, you can still trap that windows message using win32lib. try something like this. procedure TrapMsg(integer id,integer event,sequence params) if params[1] = WM_ERASEBKGND then returnValue(1) end if end procedure setHandler(<window id>,w32HEvent,routine_id("TrapMsg")) Jordah ----- Original Message ----- From: <Patrick.Barnes at transgrid.com.au> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, January 14, 2003 9:50 PM Subject: RE: Win32 page flipping > > How do you do that? Is that a win32lib thing, or an api thing? > > -----Original Message----- > From: Phil Russell [mailto:pg_russell at lineone.net] > Sent: Tuesday, 14 January 2003 20:56 > To: EUforum > Subject: RE: Win32 page flipping > > > Hi Patrick, > > Another source of flicker that I have found is the automatic background > erase that windows performs prior to WM_PAINT being issued. You can > prevent this by returning 1 to the WM_ERASEBKGND message for the window > you are blitting to. > > There is also a good article on flicker-free drawing at: > > http://freespace.virgin.net/james.brown7/tuts/flicker.htm > > HTH, > > Phil > > Patrick.Barnes at transgrid.com.au wrote: > > I have several pages of graphics and text (wPuts'ed) that I wish to > > switch between without flickering. How do I draw graphics and text into > > a bitmap, so that I can blit it on to the screen in one go? > > ======================= > > Patrick Barnes > > Information Systems Group > > 201 Elizabeth St, Sydney > > Patrick.Barnes at transgrid.com.au > > Ext: 91-3583 > > Ph:(02) 9284-3583 > > Mob: 0410 751 044 > > > > > > *********************************************************************** > > > > > > *********************************************************************** > > > > > TOPICA - Start your own email discussion group. FREE! > > > *********************************************************************** > > > *********************************************************************** > > > > TOPICA - Start your own email discussion group. FREE! >