_PORTRAIT keyword

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

Syntax

_PORTRAIT

Example

ON RESIZE updateScreen

SUB updateScreen
IF _PORTRAIT THEN
'screen is portrait, do something
END IF
END SUB

Go back to list of Keywords.