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

TControl.AddHandler

Adds an notification handler.

Declaration

Source position: controls.pp line 1409

protected procedure TControl.AddHandler(

  HandlerType: TControlHandlerType;

  const AMethod: TMethod;

  AsFirst: Boolean = False

);

Arguments

HandlerType

  

Type of the event.

AMethod

  

The handler to be added.

AsFirst

  

Unused.

Description

Notification handlers allow to notify other components of certain events. When the registered event occurs, all installed (added) handlers are invoked.

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