Menu Callback Operations
Menu callback operations define the action that is taken when a user selects the associated menu option in the IDE. The names of callback operations are user-defined, but the interface is fixed.
- editorMenuCallback—operation that implements the functionality for Menu Plug-In options in the Actions menu of object editors.
- globalMenuCallback—operation that implements the functionality for Menu Plug-In options in the IDE main menu.
The parameters specified by the callback interface enable the Uniface IDE to pass in the object context for editor menu options, and for the operation to return an optional object URL and refresh instructions to the IDE.
generateStats
For example, the following operation implements an editorMenuCallback:
public operation generateStats params string pObjectUrl: in string pRedirectionUrl: out ; if needed, specify a URL to change the focus numeric pRefresh: out ; 0=no refresh, 1=current/requested editor, 2=all editors endparams FLD1 = "Statistics for %%(pObjectUrl)" ; ... code to collect and display some data ... show return 0 end ; getStatistics