CRT Documentation: Reference

SetScreenSize

[This function does not have a corresponding DOS function.]

Changes the dimensions of the console screen.

function SetScreenSize(
  Width, 
  Height: integer
): boolean;

Parameters

Width
[in] New screen width.
Height
[in] New screen height.

Return Values

True if successful, False on failure.

Remarks

Changing the screen size has the side effect of resetting the current window view port to encompass the full screen dimensions (the default). Internally, this function calls SetConsoleScreenBufferSize and SetConsoleWindowInfo.

SetScreenSize operates independently from TextMode in that any changes made using this function do not affect the LastMode variable.

See Also

Crt Overview, ScreenX, ScreenY, TextMode