TCustomForm.DoCreate procedure
Notifies the create handlers for the form instance.
Declaration
procedure DoCreate; virtualDescription
DoCreate is a method used to signal the create handlers for the
form instance. DoCreate signals the
OnCreate event handler (when
assigned) to perform any actions needed for the new form instance. DoCreate
also signals other create handlers to perform the methods using the current
form instance as an argument.
If an Exception occurs in one of the event handlers, it is handled
in the method when HandleCreateException returns True. When
it returns False, the exception is re-raised in the method.
DoCreate calls LockRealizeBounds on entry to disable sending
bounds changes to the widgetset class. UnlockRealizeBounds is
called prior to exit to re-enable sending bounds changes to the widgetset
class.
DoCreate is a called from the AfterConstruction method after the
initial bounds for the form have been set, and before scaling and automatic
layout adjustment are performed (if needed) for the new form instance.
See also
An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.
