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

TCustomForm.Position

The initial placement for the form.

Declaration

Source position: forms.pp line 822

public property TCustomForm.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

TForm.AutoSize

  

Allows automatic adjustment of the size for the control, according to its content.

TCustomForm.MoveToDefaultPosition

  

Moves the form to the location specified in the Position property.

TPosition

  

Represents the Position and Size of a Form on Screen.


Version 3.2 Generated 2024-02-25 Home