A class of built-in objects that correspond to button controls placed on the Virtual Ticket, Job Manager, or Digital Storage Manager form in which the MetaScript is being executed.
Button objects are predefined MetaScript objects, and can be accessed using one of the form control accessor methods of the global Form object. These methods include Form.createControlIterator, Form.getControlById, and Form.getControls.
Button objects are designed to allow registration of event listeners for buttons located on form in which the MetaScript is being executed, and also to allow access to the properties of these buttons.
Form control events are fired as a result of user interaction with form controls (for example, in response to button clicks). Listeners may be registered for these events; an event listener is a particular function that executes each time a specific type of Event is fired by the system. Any number of listeners may be created for a given event type and one function may be a listener for several distinct events. The order in which event listeners are executed is not guaranteed.
To add an event listener for form control events, use the addEventListener method of the appropriate form control object (for example, Button.addEventListener for buttons).
Adds a specified event listener for the specified event type. | |