TssCentreControl is a non-visual component that centres an assigned control on its parent window. The control to be centred can either be the owning form or any control on that form. The assigned control is automatically centred when the form is first loaded, but it may be re-centred as necessary by calling the Centre method.
One advantage of centring child forms is that they can be associated with the application by always appearing over its currently active window. They are no longer created at a position that is independent of their parent.
|Delphi 1||Delphi 2||Delphi 3||Delphi 4|
|Delphi 5||Delphi 6||Delphi 7||Delphi 8|
|Delphi 2005||Delphi 2006||Delphi 2007|
Note: later versions of Delphi allow a pop-up form to be centred on its parent without the use of this component. However, this component can still be useful for keeping other elements centred within their parent container.