You can prevent all screen paints for a window by using the Windows API
LockWindowUpdate().

LockWindowUpdate(Form1.Handle);
..do processing..
LockWindowUpdate(nil);

Ross.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Chuck Belanger
Sent: Tuesday, 13 November 2007 8:11 a.m.
To: Delphi Listserve
Subject: Way to paint the screen once, instead of multiple times for control
resizing?

Hello:

In a number of components there is a BeginBusy, EndBusy type of property 
that allows one to block out any screen updates (or other changes) until 
the EndBusy is reached. I have a program I'm working on that when it 
starts and a number times during its use a number of controls need to be 
resized and it looks really messy as they start jumping around on screen!

Is there any way I can do something like 
Screen.BeginBusy....Screen.EndBusy? to keep the update at the end of a 
block of screen control changes with painting, that way avoid a number 
of incremental changes, instead having one screen repaint for all the 
changes?

Thank you for any suggestions,

Chuck Belanger

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to