TAppEventsOnIdle (C++)

From RAD Studio Code Examples
Jump to: navigation, search

Description

This example requires that a TApplicationEvents and a TListBox are on the form. Select the TApplicationEvents, double-click the OnIdle event, and add the following code to the handler. The OnIdle event handler is used to perform special processing when an application is idle. An application is idle when it is not processing code.

Code

void __fastcall TAppEventForm::ApplicationEventsIdle(TObject *Sender,
      bool &Done)
{
    lbIdle->Items->Add("Event OnIdle");
}

Uses