PreviousNext
MenuActivated
Help > Custom DPA Handler > Events > MenuActivated

This event is raised only at TR-7xG [N] when Online or ReadyToBond DPA Menus are about to be activated. The userReg1 variable at the entry is the menu to be activated (DMENU_Online or DMENU_ReadyToBond). On exit userReg1 variable must contain flags for enabling or disabling implementation of the optional menu items (or 0, if menu is not customized). See DpaApiMenu parameter flags for details. The event must return TRUE to be processed, otherwise the menu is not customized.

 

Example

 

case DpaEvent_MenuActivated:

  switch ( userReg1 )

  {

    case DMENU_Online:

      userReg1 = DMENU_Item_Implemented_GoBeaming | DMENU_Item_Implemented_User1;

      return TRUE;

 

    case DMENU_ReadyToBond:

      userReg1 = DMENU_Item_Unimplemented_UnbondFactorySettingsAndRestart;

      return TRUE;

  }

 

return FALSE;

 

See example CustomDpaHandler-DpaMenu for more details.