Unit 'Controls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TControl.AddHandler

Adds an notification handler.

Declaration

Source position: controls.pp line 1477

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 components to be notified of certain events. When the registered event occurs, all installed (added) handlers are invoked.



CT Web help

CodeTyphon Studio