ON PRESS keyword
Executes a SUB on a press event. The difference with ON CLICK is that the event is generated the moment the object is clicked or pressed (mouse-down).
Syntax
ON PRESS object, sub, limit
Parameters
- object: object (required)
- sub: subroutine to execute (required)
- limit: maximum number of executions, by default unlimited
Example
ON PRESS myImage, myFunction
ON PRESS myImage, myFunction, 5
Go back to list of Keywords.