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

TEmulatedTaskDialog.CreateNew

Constructor for the form instance.

Declaration

Source position: lcltaskdialog.pas line 207

public constructor TEmulatedTaskDialog.CreateNew(

  AOwner: TComponent;

  Num: Integer = 0

); override;

Arguments

AOwner

  

Component which owns the emulated task dialog form.

Num

  

Contains a specific instance number for the form. The default value is 0.

Description

CreateNew is the overridden constructor for the form class instance. CreateNew is used to create a form instance which does not have a resource (.lfm) file.

CreateNew calls the inherited method on entry to initialize properties for the form instance and to register the form on the current Screen.

The overridden constructor sets the value in KeyPreview to True. This allows the form instance to intercept KeyDown, KeyUp, and KeyPress events from child controls before they are applied to the active control on the form. This is commonly done on modal dialog forms to allow the parent form to handle specific interactions with the user.

See also

TCustomForm.CreateNew

  

Creates a form instance without a resource (.lfm) file.

TForm.KeyPreview

  

Allows the form to intercept keystrokes in child controls.

Screen

  

The TScreen singleton for the application.

TScreen

  

Provides information about screen displays in an application.


Version 4.0 Generated 2025-05-03 Home