OnActionUpdate (C++)
Description
This example requires that a TApplicationEvents and a TListBox are on the form. Select the TApplicationEvents, double-click the OnActionUpdate event, and add the following code to the handler. Create other TApplicationEvents the same way. When these events update, this event is triggered. The Handled parameter of the event handler returns False by default. If the handler handles the event, it should change Handled to True, thereby preventing further attempts to handle the action.
Code
void __fastcall TAppEventForm::ApplicationEventsActionUpdate(
TBasicAction *Action, bool &Handled)
{
lbActionUpdate->Items->Add("Event OnActionUpdate");
}