on 2/18/07 9:21 PM, Scott Crick (Lists) at [EMAIL PROTECTED] wrote: > On 2/18/07 7:35 PM, "Chris Little" <[EMAIL PROTECTED]> wrote: > >>> Could you provide a code example here of how to implement this? >> >> Just call invalidate on yourself passing false. >> >> Me.Invalidate false > > Okay, but WHEN should you call this? Just when you would normally call > me.refresh? If so, how do you handle automatic paint events?
Refresh and Invalidate do the same thing. Refresh calls Invalidate and then UpdateWindow to force the invalidated region to be repainted. If you are calling Refresh or Invalidate you need to be passing false as a parameter to surpress the automatic erase that the RB framework adds before calling the paint events of the Windows and then the controls that intersect the invalidated area. Call Refresh if you need an immediate redraw or invalidate if you want lazy painting. You shouldn't have to do anything to handle the normal paint events. The key to making transparency to work is to never erase. The stuff underneath look after all of that. That may mean that the window has to do some erasing. It depends on your situation. Chris _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
