Language:
Русский
English
{Getmxx.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the GetMaxX function.}
uses Graph;
var Gd, Gm: Integer;
begin
Gd := Detect;
InitGraph(Gd, Gm, '');
if GraphResult <> grOk then
Halt(1);
Rectangle(0, 0, GetMaxX, GetMaxY); { Draw a full-screen box }
Readln;
CloseGraph;
end.