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/