OnActionUpdate (Delphi)
Description
This example requires a TApplicationEvents and a TListBox 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 the 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, thus preventing further attempts to handle the action.
Code
procedure TMainForm.ApplicationEventsActionUpdate(Action: TBasicAction;
var Handled: Boolean);
begin
lbActionUpdate.Items.Add('Event OnActionUpdate');
end;