_LANDSCAPE keyword

Returns true if the screen orientation is landscape. Useful when using event ON RESIZE. Also look at _PORTRAIT

Syntax

_LANDSCAPE

Example

ON RESIZE updateScreen

SUB updateScreen
IF _LANDSCAPE THEN
'screen is landscape, do something
END IF
END SUB

Go back to list of Keywords.