You could use LockWindowUpdate(Form.Handle);

-----Original Message-----
From: delphi-en@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jamie L. Mitchell
Sent: Sunday, 6 August 2006 5:58 a.m.
To: Jason
Subject: [delphi-en] Disable Screen Updates

When I am dealing with a group of data-aware controls, I can easily make
data updates look much better by using DisableControls / EnableControls
in a try / finally block.

I have several transforms done to an entire screen that I would like to
be able to do the same thing.  For example, when going from browse mode
to edit mode, I change colors, read only and enable states, add tabs,
etc.  In some cases, due to calculation times and database fetches, it
may take 1/2 to 1 second to make the change (this is
entirely acceptable to me.)   However, some controls change
immediately, and some change at the end of the process.  I would like to
freeze the entire screen and then unfreeze it when the transforms have
all been made making it look like it is more professional.

Is there any way to do this?  Essentially, I want a DisableForm /
EnableForm like the TDataSet has.  I would also like to be able to send
ProcessMessage() so if the entire window is moved or another window is
moved, the app does not look like it is frozen.

Delphi 5 Pro, ADO, and a bunch of 3rd party controls.

Any ideas?

Thanks
jamie





-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
Yahoo! Groups Links



 







-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to