getWidth


function getWidth: integer;

Returns the width (in pixels) of the display area.

  begin
    drawEllipse(0, 0, getWidth, getHeight);
    repaint;
    delay(1000);
  end.

See also: getHeight