Skip to content

GET_DISPLAY_SIZE

Queries the size of the display.

Syntax

leo-grammar
CC "AdoScript" GET_DISPLAY_SIZE	.

  # --> RESULT w:intValue h:intValue .
CC "AdoScript" GET_DISPLAY_SIZE	.

  # --> RESULT w:intValue h:intValue .

Parameters

none

Returns

  • w (intValue) - holds the width of the display in pixels.
  • h (intValue) - holds the height of the display in pixels.

Details

See Also

Examples

asc
CC "AdoScript" GET_DISPLAY_SIZE
CC "AdoScript" INFOBOX ("Your display's width is \""+(STR w)+"\"
     and height is \""+(STR h)+"\" pixels")
CC "AdoScript" GET_DISPLAY_SIZE
CC "AdoScript" INFOBOX ("Your display's width is \""+(STR w)+"\"
     and height is \""+(STR h)+"\" pixels")

Reads the width and height fo the display and shows it in an INFOBOX

Versions and Changes

Available since ADOxx 1.3