[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Determines the position for the dialog form and captures its coordinates.
Source position: dialogs.pp line 494
protected procedure TFindDialog.CalcPosition( |
aForm: TForm |
); |
aForm |
|
TForm instance examined in the method. |
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.
|
Creates and configures the internal form displayed for the dialog. |
|
|
Coordinate for the Left side of the dialog form. |
|
|
Coordinate for the Top edge of the dialog form. |
|
|
The initial placement for the form. |
|
|
The client coordinate with the left edge for the control. |
|
|
The client coordinate for the top edge of the control. |
Version 4.0 | Generated 2025-05-03 | Home |