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

TControl.Notification

Notification handler for insertion or deletion of components.

Declaration

Source position: controls.pp line 1396

protected procedure TControl.Notification(

  AComponent: TComponent;

  Operation: TOperation

); override;

Arguments

AComponent

  

The component being inserted or removed.

Operation

  

The action (opInsert or opRemove).

Description

First the inherited #rtl.Classes.TComponent.Notification is invoked, to notify all attached notification handlers.

If Operation is removal, additional actions are performed, depending on AComponent:
PopupMenu, Action, or anchors to the removed control are detached.

See also

#rtl.Classes.TComponent.Notification

The latest version of this document can be found at lazarus-ccr.sourceforge.net.