TControl.RemoveHandler procedure
Removes a notification handler from the list for the specified handler type.
Declaration
procedure RemoveHandler(HandlerType: TControlHandlerType;
const AMethod: TMethod)Arguments
HandlerType | Control handler type for the routine removed in the method. |
AMethod | The handler routine removed from the list of handlers for the specified type. |
Description
RemoveHandler is a method used to remove the specified handler
routine from the method list for a given control handler type. It removes an
entry in the method list created using the AddHandler method.
HandlerType is a value from the
TControlHandlerType
enumeration that identifies the method list updated in the method. It is an
index into the internal array of TMethodList instances used to store handler
routines.
AMethod is the
TMethod instance to locate and remove
from the method list for the handler type. It is a reference to a
TNotifyEvent implementation cast to the TMethod type used in the
method list.
RemoveHandler calls the Remove method in the TMethodList instance using AMethod as an argument.
Convenience methods are provided that manage a method list for a single control type handler. For example:
- RemoveHandlerOnResize
- RemoveHandlerOnChangeBounds
- RemoveHandlerOnVisibleChanging
- and others
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
