This property sets the position of the initial display of the form.
In
ActiveX [form.]resizecontrolname.FormPos [=Integer]
In
VCL [form.]resizecontrolname.FormPos [:=TResizeFormPos]
Property Value
| Value | Explanation |
|---|---|
| 0 (rpDefault) | Default (The initial or preset position of the form) |
| 1 (rpTopLeft) | Top Left |
| 2 (rpTopCenter) | Top Center |
| 3 (rpTopRight) | Top Right |
| 4 (rpMiddleLeft) | Middle Left |
| 5 (rpMiddleCenter) | Middle Center |
| 6 (rpMiddleRight) | Middle Right |
| 7 (rpBottomLeft) | Bottom Left |
| 8 (rpBottomCenter) | Bottom Center |
| 9 (rpBottomRight) | Bottom Right |
Note: In the table above, the numerical values are for ActiveX control notation; the values in parentheses are for VCL notation.
Explanation
The FormPos property sets the position of the initial display of the form. The default value is 0 (rpDefault).
Use numerical values to set the FormPos value in ActiveX. In VCL, use
TResizeFormPos = (rpDefault, rpTopLeft, rpTopCenter, rpTopRight, rpMiddleLeft, rpMiddleCenter, rpMiddleRight, rpBottomLeft, rpBottomCenter, or rpBottomRight);
Setting Property Value
This property can be set during design and during execution
Retrieving Property Value
This property can be retrieved during execution


