[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TCustomForm.UpdateActions

Asks all components on the form to update their actions.

## Declaration

Source position: forms.pp line 689

`protected procedure TCustomForm.UpdateActions; virtual;`

## Description

UpdateActions is a procedure used to update actions assigned to components on the form instance. No actions are performed in the method at design-time, or when the Showing property is set to False in the form instance.

UpdateActions applies updates for an assigned Menu in the form instance. Items on the Menu update their actions when the menu item is visible. Finally, all controls on the form instance are recursively searched; controls which are action clients update their actions when they are visible.

Update actions is called for each of the custom forms when the application enters an idle state, and occurs after processing queued asynchronous calls and the OnIdle event handler in the application.

## See also

TCustomForm.Visible |  | Indicates if the control is visible on its parent.
TCustomForm.Menu |  | The main menu for the form instance.
TApplication.OnIdle |  | Event handler signalled when the application enters the idle state.
TApplication.Idle |  | Called when the application enters the idle state.
TWinControl.Showing |  | Cached visibility for the widget. Not necessarily in sync with the widget.
TControl.InitiateAction |  | Updates the action associated with the control using its action link.