Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

CreateStandAlone method

Project: Window State Components.

Unit: PJWdwState.

Class: TPJCustomWdwState

Applies to: ~>5.0

constructor CreateStandAlone(AOwner: TForm);

Description

This constructor is used when creating instances of components dynamically at run time. It allows only one instance of a component derived from TPJCustomWdwState to be created for any form. The AOwner parameter must specify a valid owner form that is the window whose state is to be saved and restored. AOwner must not be nil.

Note: The standard constructor will not work properly if called dynamically since it depends on the Loaded method being called to complete instantiation of the component. Loaded is only called for components placed on the form at design time. CreateStandAlone performs all the required instantiation.