Vcl.Forms.TApplication.ActionUpdateDelay

From RAD Studio API Documentation
Jump to: navigation, search

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:

  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%.

See Also