AddEvent procedure
Adds an event handler for a specific event. The event handler is the name of a macro.
Synopsis
AddEvent(event, handler, event_specific_parameters)
Parameters
|
Name |
Required? |
Type |
Documentation |
|---|---|---|---|
|
|
yes |
string |
The name of the event that should trigger the handler |
|
|
yes |
string |
The name of the script that should handle the event. The script must be stored in the Digas registry in the DBM\Macros key under this name. |
|
|
depends |
string |
Additional parameters; number and meaning depends on the event. |
The event parameter can have one of the following values:
|
Event name |
Triggered when |
Additional Parameters |
|---|---|---|
|
|
when a grid is about to be updated |
|
|
|
when a field (cell) of a grid is about to be updated |
|
Returns
Nothing
Example
AddEvent("PreDrawGridField", "PreDrawGridField_Handler", "ENTRIES, GROUP_MEMBERS, SEARCH_RESULT", "special/custom_field")
ClearEvents procedure
Currently not available.