Each object has its own events, which are related to the behavior of the object itself.
Example: The "MouseMove" event is available for all object types; however, window type objects also accept events such as activation, deactivation and close, which are specific to this type of object.
In the 4GL source, events appear in the WORK WITH EVENTS paragraph, and are classed by object.
In this example:
the program stops when the user clicks the left mouse button over the Exit button.
If the mouse pointer is moved over the Exit button, an explanatory text is displayed in a remark field.
The process is the same when the pointer is moved over the VAT radio button.
Lastly, a calculation is performed whenever the value of the VAT radio button changes.
Important:The options in contextual menus associated with graphical objects become events.
Click here to see an example on how to work with events.