skip to main content
OpenEdge Development: Basic Development Tools
Procedure Editor Integration Hooks : Events
 
Events
This section describes the file‑specific events and the STARTUP and SHUTDOWN events for the adecomm/_adeevnt.p procedure.
File-specific events
Table 4 describes the events (corresponding to p_event) that are related to file operations.
 
Table 4: File-specific events 
Event
Operation
BEFORE-CHECK-SYNTAX
Called before a Check Syntax. Returning p_ok as FALSE cancels the operation.
BEFORE-CHECK-SYNTAX-PARTIAL
Called before a Partial Check Syntax. Returning p_ok as FALSE cancels the operation.
BEFORE-CLOSE
Called before a file is to be closed. Returning p_ok as FALSE cancels the operation.
BEFORE-COMPILE
Called before a file is to be compiled. Returning p_ok as FALSE cancels the operation.
BEFORE-DEBUG
Same as BEFORE-RUN, except DEBUG is chosen.
BEFORE-OPEN
Called before a file is to be opened. Returning p_ok as FALSE cancels the operation.
BEFORE-RUN
Called before a file is written to disk for a run. Returning p_ok as FALSE cancels the operation.
BEFORE-SAVE
FALSE before a file is to be saved. Returning p_ok as FALSE cancels the operation.
CHECK-SYNTAX
Called after a Check Syntax.
CHECK-SYNTAX-PARTIAL
Called after a Partial Check Syntax.
CLOSE
Called after a window or buffer is closed.
COMPILE
Called after a file is compiled.
DEBUG
Same as RUN, except DEBUG was chosen. Returning p_ok as FALSE cancels the operation.
NEW
Called after a new window/dialog box is created.
OPEN
Called after a file is opened.
RUN
Called after RUN of file ends.
SAVE
Called after a file is saved.
Some events—for example NEW—cannot be cancelled even if returning FALSE.
STARTUP and SHUTDOWN events
The following Procedure Editor events (corresponding to p_event) occur at Procedure Editor startup and shutdown:
*STARTUP — Called when the Procedure Editor (PE) has been loaded and initialized. This call occurs immediately before user input is allowed. In this case:
*p_context = STRING(procedure-handle-of-the-PE-main-routine)
*p_other = STRING(widget-handle-of-the-PE-window)
*SHUTDOWN — Called when a user requests that the Procedure Editor shutdown. This call occurs before any settings have been saved or items destroyed. In this case:
*p_context = STRING(procedure-handle-of-the-PE-main-routine)
*p_other = STRING(widget-handle-of-the-PE-window)
The Procedure Editor STARTUP and SHUTDOWN events cannot be cancelled.