TControl.RemoveAllHandlersOfObject procedure
Removes all control handler types for the specified object.
Declaration
procedure RemoveAllHandlersOfObject(AnObject: TObject); overrideArguments
AnObject | Object (TControl) associated with the handler routine removed in the method. |
Description
RemoveAllHandlersOfObject is an overridden method in
TControl used to remove all handler routines for the specified
object instance found in the internal storage for the control handler types.
AnObject is the control associated with handler routines located
and removed in the method. It allows handler routines added at run-time to be
removed prior to destroying the object instance in AnObject.
RemoveAllHandlersOfObject visits each of the TMethodList instances
used for each of the TControlHandlerType values. It calls the
RemoveAllMethodsOfObject method in the TMethodList instance to remove
associations where AnObject is the target.
The method can be overridden in descendent classes to provide additional functionality needed for derived controls.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
