Vcl.Forms.TApplication.ActionUpdateDelay
Delphi
property ActionUpdateDelay: Integer read FActionUpdateDelay write FActionUpdateDelay default 0;
C++
__property int ActionUpdateDelay = {read=FActionUpdateDelay, write=FActionUpdateDelay, default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Delays the call to DoActionIdle.
Use ActionUpdateDelay to delay the call to DoActionIdle. The following example demonstrates the usefulness of this property:
- Create an MDI project with a main form, a MDI Child and a TAction class.
- Link the TAction OnUpdate event to a method.
- 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%.