RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.ActionUpdateDelay Property

Delays the call to DoActionIdle.

Pascal
property ActionUpdateDelay: Integer;
C++
__property int ActionUpdateDelay;

Use ActionUpdateDelay to delay the call to DoActionIdle. The following example demonstrates the usefulness of this property:

  1. Create an MDI project with a main form, a MDI Child and a TAction class.
  2. Link the TAction OnUpdate event to a method.
  3. Run the program and maximize the MDI child.

If you open Windows Task Manager, you can see that CPU usage for the MDI application is nearly 100%. However, if you set Application.ActionUpdateDelay to a non-zero value, the CPU usage for the application is significantly lower than 100%. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!