Sign in Join
FPDoc Onlineexperiment

TMenuItem.Notification procedure

Member of TMenuItemprotectedIn unit Menus

Performs a notification when the menu item is added or removed.

Declaration

pascal
procedure Notification(AComponent: TComponent; Operation: TOperation)
 ; override

Arguments

AComponent

Component for the notification.

Operation

Operation for the notification.

Description

Notification is an overridden method in TMenuItem, and calls the inherited method on entry. Notification ensures that the class instances in Action and SubMenuImages are set to Nil when the remove Operation is received for either member.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.