centreWindow

centreWindow();

The centreWindow method of the Window, Form, and JadeDockBase classes centers an MDI child form that is being opened, and positions it in the middle of the client area of its parent MDI frame. A non-MDI form is centered within the monitor on which the form resides. The centreWindow of the Control class centers the control in the middle of its parent. The method in the following example shows the use of the centreWindow method.

load() updating;
begin
    centreWindow;
    caption             := process.signOnUserCode;
    connectionName.text := app.computerName;
    sendIt.value        := true;
    create tcp;
end;