evt_cal_mac

Allows to call event macros at items of an edit-menu and at buttons of an edit-button-area.


Parameters:

@macroname

@macroname
Name of an -> event macro (usually macros for MAS-state).


Usage as:

On_Select userexit in edit-menus/edit-button-areas.


Explanation:

This userexit allows to start frequently used key functions via edit-menu or via edit-button in mask-edit state.

Example: In DataView system masks the userexit allows for instance at the edit button delete field content that the corresponding event macro @CLEAR-FIELD can be executed.

Note! It is secure to use the macros @POP-FIELD, @FIRST-FIELD, @LAST-FIELD, @CLEAR-FIELD, @INSERT-LINE, @DELETE-LINE, @UNDO-BACKWARD, @UNDO-FORWARD, @INSERT-MODE, @OVERSTRIKE-MODE in mask-edit state. However, you can also call all other event macros. Then you must make sure, that their usage in MAS state is useful. Also, if you call a macro for a different system state, you also have to call evt_cal_mac in this different system state (e.g. in Select or NoSelect menus).