Input Parameters | Significance |
DtvLong idm | menu-Id |
MEN_FNC_LAY_LNR fnc | pointer to the menu-listener function |
Output Parameters | Significance |
none | - |
Return Code | Significance |
0 | all OK |
1 | old menu-listener function was overwritten |
-1 | No menu Id passed |
With the help of the menu-listener callback function you can react on changes to the local data structure. The menu-listener function is automatically invoked by all functions that change menus, such as dal_men_wri_row.
The menu-listener function must correspond to the specification void fnc(idm, typ, fnc_nam, par). The parameters are:
If the same listener function is used for all objects (menus, button areas, masks), the enumeration type DTV_LAY_LNR_TYP can be used to determine from which object the listener function was called.