Sign in Join
FPDoc Onlineexperiment

TCustomForm.Position property

Member of TCustomFormpublicIn unit Forms

The initial placement for the form.

Declaration

pascal
property Position: TPosition read FPosition write SetPosition default poDesigned;

Description

Position is a TPosition property which indicates the size and position policy used to display the form instance. The default value for the property is poDesigned, and indicates that the coordinates used in the form designer are used at run-time. See TPosition for the other values, and their meanings, available for the property.

Changing the value in Position causes the value in AutoSize to be updated when needed, and calls UpdateControlState. No additional actions are performed at design-time.

MoveToDefaultPosition is called when a handle exists for the form instance and the form has not been displayed.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.