ON RESIZE keyword
Executes a SUB when there is a change in screen orientation. Detects the screen orientation with _PORTRAIT or _LANDSCAPE.
Syntax
ON RESIZE sub, limit
Parameters
- sub: subroutine to execute (required)
- limit: maximum number of executions, by default unlimited
Example
ON RESIZE myFunction
ON RESIZE myFunction, 5
Go back to list of Keywords.