Common Desktop Environment: Application Builder User's Guide

To Connect a Menu Item to a Call Function

Only the Call Function target action is described in this section. See "To Connect a Menu Item to a Predefined Action" and "To Connect a Menu Item to an Execute Code Action" for information about those connections.

  1. Display the Connections Editor.

    Click Connections at the bottom of the Revolving Property Editor or choose Connections from the Editors menu of the App Builder primary window.

  2. Choose Menu Item from the Source menu.

    All of the menu items in the current project will be listed.

  3. Select a menu item from the list below the Source menu.

    This is the item from which the connection will be made.

  4. Choose Call Function as the target action type from the Action Type menu.

    The Function text field will be activated.

  5. Type the name of the function to be called in the Call Function text field.

    This is the function that will be called when the When action is performed on the source menu item. See "Adding User Code to Generated Code" for information about incorporating user code into the generated code.

  6. Choose a When action for the Source menu item.

    Choices are Activated, Created, and Destroyed.

  7. Click Connect to make the connection.

    The connection will be displayed in the View list at the bottom of the Connections Editor.

  8. Click Cancel to dismiss the Connections Editor.