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

TControl.Notification

Notification handler for insertion or deletion of components in the control.

Declaration

Source position: controls.pp line 1536

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 TComponent.Notification is called to notify all attached notification handlers.

If Operation is opRemove, additional actions are performed in the method. If AComponent is the component used in PopupMenu, Action, or HostDockSite the property value is set to Nil. If AComponent is an alignment control in anchor docking, the reference is also set to Nil for the AnchorSide where it is used.

See also

TControl.Action

  

The Action associated with the control.

TControl.PopupMenu

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control.

TControl.HostDockSite

  

The host site (TWinControl) into which this control is docked. Nil if not docked.

TControl.AnchorSide

  

Array of anchor definitions, indexed by the control sides.

TComponent.Notification

TOperation


Version 3.2 Generated 2024-02-25 Home