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

TPosition

Represents the Position and Size of a Form on Screen.

Declaration

Source position: forms.pp line 56

type TPosition = (

  poDesigned,

  

The Form appears exactly as it is positioned and sized in the Form Designer.

  poDefault,

  

The window manager decides how the form is to appear, in a default position and size.

  poDefaultPosOnly,

  

Keeps the designed form size, but position determined by windowmanager.

  poDefaultSizeOnly,

  

Keeps the designed form position, but size determined by windowmanager.

  poScreenCenter,

  

Centers the form on screen.

  poDesktopCenter,

  

Centers the form on the desktop (not recommended, use poScreenCenter).

  poMainFormCenter,

  

Centers the form on the Main Form.

  poOwnerFormCenter,

  

Centers the form on its Owner form.

  poWorkAreaCenter

);

Description

poDesigned - The Form appears exactly as it is positioned and sized in the Form Designer

poDefault - The window manager decides how the form is to appear, in a default position and size

poDefaultPosOnly - keeps the Designed size, but position determined by windowmanager

poDefaultSizeOnly - keeps the Designed position, but size determined by windowmanager

poScreenCenter - Centers the form on screen

poDeskTopCenter - Centers the form on desktop

poMainFormCenter - Centers the Form on the Main Form

poOwnerFormCenter - Centers the Form on Owner form

poWorkAreaCenter - Centers the Form on working area

The latest version of this document can be found at lazarus-ccr.sourceforge.net.