i'm sure you're right i didn't mean that to be a "code sample" just a vague description of the process. Sorry if it looked like code.
But - even though LockWindowHandle gets passed a window handle it appears to affect more than just that one window. In my case when repainting was restored the whole desktop flashed (as if all the windows repainted). -ns http://www.roserox.co.th ----- Original Message ----- From: "Myles Penlington" <[EMAIL PROTECTED]> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> Sent: Friday, 16 August 2002 09:22 Subject: RE: [DUG]: LockWindowUpdate > From memory LockWindowUpdate( ) takes as a parameter the window handle of > the window you want to lock, you then unlock with LockWindowUpdate( 0 ); > > > -----Original Message----- > From: Nello Sestini [mailto:[EMAIL PROTECTED]] > Sent: Friday, 16 August 2002 2:21 p.m. > To: Multiple recipients of list delphi > Subject: Re: [DUG]: LockWindowUpdate > > > i've tried using LockWindowUpdate in situations where i had a few > mutually dependent windows and was getting race-condition repainting > when something changed in one of them. What i thought should work > was > LockWindowUpdate( True ); > // make whatever change > // let all the cascading side-effect events fire > LockWindowUpdate( False); > // force a refresh > > But (as you described) LockWindowUpdate has these wierd global effects > on all the desktop windows not just yours. In my case it made the > whole screen momentarily flash - really annoying. > > In both cases i've tried this i've ultimately fixed the problem some > other way - like using control flags in Paint functions to suspend > redrawing while things are unstable. > > YMMV > > > > -ns > http://www.roserox.co.th > > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]> > Sent: Friday, 16 August 2002 09:06 > Subject: [DUG]: LockWindowUpdate > > > > Trying to use this at the moment. However when the window is locked any > other > > item dragged on screen will leave a trail of images, when this occur the > > window that is supposedly locked can bee seen updating. > > > > Suggestions > > anyone? > > > > -------------------------------------------------------------------------- > - > > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > > Website: http://www.delphi.org.nz > > To UnSub, send email to: [EMAIL PROTECTED] > > with body of "unsubscribe delphi" > > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > -------------------------------------------------------------------------- - > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz > To UnSub, send email to: [EMAIL PROTECTED] > with body of "unsubscribe delphi" > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ > --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/