TFindDialog.CalcPosition procedure
Determines the position for the dialog form and captures its coordinates.
Declaration
procedure CalcPosition(aForm: Tform)Arguments
aForm | TForm instance examined in the method. |
Description
CalcPosition ensures that both the form and the class instance are
updated with the location where the form is displayed. The Position property
in the form instance is updated to display the form in the correct relative
location.
At design-time, the dialog form is aligned to the center of the Screen (poScreenCenter).
At run-time, the dialog form is aligned to the center of the main form in the application (poMainFormCenter) when the Left and Top coordinates in the dialog are set to their unassigned values. The Left and Top coordinates are stored in the class instance for subsequent use in the CreateForm method.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
