[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Adds a handler for a form create event.
Source position: forms.pp line 755
public procedure TCustomForm.AddHandlerCreate( |
OnCreateHandler: TNotifyEvent; |
AsFirst: Boolean = False |
); |
OnCreateHandler |
|
Form create handler added in the method. |
AsFirst |
|
True if the handler is stored as the first entry in the list of form create handlers. |
AddHandlerCreate is a method used to add the TNotifyEvent handler specified in OnCreateHandler to the list of form handlers for the type. It allows a form instance to have additional event handlers which behave just like the OnCreate event handler.
AddHandlerCreate calls the AddHandler method to create the TMethod entry used to represent the handler routine. When AsFirst is True, the routine in OnCreateHandler is inserted as the first item in the list of form create handlers.
Applications must implement and assign an object procedure using the signature in TNotifyEvent to perform actions needed when the form instance has been created and its bounds have been assigned.
A handler added using AddHandlerCreate is signalled after the OnCreate event handler for the form instance.
Use RemoveHandlerCreate to remove a form create handler added in the method.
|
Constructor for the class instance. |
|
|
Handler called when the form has been created. |
|
|
Performs actions when the form has been created and loaded from its resource file. |
|
|
Destructor for the class instance. |
|
|
Removes a form create handler added to the form instance. |
|
Version 3.2 | Generated 2024-02-25 | Home |