Unit 'fpobserver' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

TObservedHook.CreateSender

Creates an observer hook with a specified sender object

Declaration

Source position: fpobserver.pp line 39

public constructor TObservedHook.CreateSender(

  ASender: TObject

);

Arguments

ASender

  

Object that will be used as sender in notifications

Description

The CreateSender constructor initializes the observer hook with a specific sender object that will be used in all notifications. If ASender is nil, the hook itself becomes the default sender.

The sender object is important because observers receive it as a parameter in their notification callbacks, allowing them to identify the source of the notification.


Documentation generated on: Dec 15 2025