[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TScreen.AddHandlerNewFormCreated

Adds the specified handler routine to the new form handlers for the screen instance.

Declaration

Source position: forms.pp line 1236

public procedure TScreen.AddHandlerNewFormCreated(

  OnNewFormCreated: TScreenFormEvent;

  AsFirst: Boolean = False

);

Arguments

OnNewFormCreated

  

Handler routine added to the internal new screen form handlers for the TScreen instance.

AsFirst

  

True if the handler is inserted as the first handler for the type. False if the routine is append to the end of the list for the handler type.

Description

AddHandlerNewFormCreated calls an internal method which adds the form handler routine in OnNewFormCreated to the list of handlers for the snNewFormCreated notification type. OnNewFormCreated is an implementation of TScreenFormEvent which provides access to the screen and form instances for the notification event. AsFirst indicates whether the handler is inserted at the beginning of the list (True) or appended to the end of the list (False). The default value for the AsFirst parameter is False.

Version info

Added in LCL version 3.0.

See also

TScreen.RemoveHandlerNewFormCreated

  

Removes the specified handler routine from the new form handlers for the screen instance.

TScreenNotification

  

Screen notification events and handler types.

TScreenFormEvent

  

Type used for a screen notification handler for form-related events.


Version 3.2 Generated 2024-02-25 Home