You do not have to write code to handle every event that may be generated. You simply add code to handle those events that are of relevance to your application.
To add code for an event, select a control in the Form Editor and click the right mouse button, or press the Shift + F10 key or press the Application key, to display the popup menu. Select "Edit Event Procedure" from the popup menu and select the event you want to handle from the side menu. This opens an edit window with skeleton COBOL code, including LINKAGE SECTION definitions of any parameters passed with the call to the event. Enter your code to handle the event in this sub-program, called a "scriptlet" in the PowerCOBOL Project list.