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

TControl.AddHandlerOnBeforeDestruction

Adds or inserts the specified OnBeforeDestruction event handler.

Declaration

Source position: controls.pp line 1701

public procedure TControl.AddHandlerOnBeforeDestruction(

  const OnBeforeDestructionEvent: TNotifyEvent;

  AsFirst: Boolean = False

);