ATEasy forms, controls and menus generate notification messages to your application when a certain condition occurs. This can be when the user moves the mouse on top of the object, when the user clicks on the object, and more.
You can respond to the message by placing code in the event procedure that is associated with the notification message. ATEasy will only call event procedures that have code. If you leave the event empty, ATEasy will not call the event. The code that you place in your event should be short. This is because when the event code is executing, no other events are sent to the form. In addition, if a test program is running while the form is executed, the test program is suspended until the event is complete.
Form Events are events related to the form itself and not to the controls in the form or the menus. Form Events include OnLoad – when the Form is initially loaded, OnClick – when the mouse is used to click on the form (in an area without controls), OnResize – when the form is sized, and more. When the notification arrives, ATEasy calls the event you programmed the form to use. For example, you can program the Form to change its Caption or its background when the Form is selected.
Control and menus events are similar except they refer to notification messages received from the control. For example, the AButton control has an OnClick event, the ATimer control has an OnTimer event, and so forth.