TApplication.Initialize procedure
Initializes the widgetset (and more).
Declaration
procedure Initialize; overrideDescription
Initialize is an overridden procedure in TApplication used to
perform initialization tasks for the application. Initialize calls the
inherited method to provide support for instance counting in the custom
application. Initialize ensures that the
WidgetSet class type is
assigned for the application, and that the Screen singleton is initialized
and updated.
Initialize raises an Exception if WidgetSet has not been assigned,
or contains a class type other than TWidgetSet, for the
application.
Initialize updates the Flags property to include the value
AppInitialized when both the LCL interface (Widgetset) and the Screen
singleton have been configured.
Initialize loads the graphic image used in the Icon property. If a
resource with the name MAINICON is included in the Lazarus Resource,
it is loaded and used as the application icon. Otherwise,
FindResource is called to locate and load the named icon from the
resource handle.
Errors
Raises an Exception if the WidgetSet class is invalid or not assigned.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
