Previous Topic: Modifying the Project Manager’s Panel

Next Topic: Event Handling in the Action Diagram

Creating and Mapping Logical Events

At this point, the buttons you just created will not do anything if you click them. You need to define a logical event for each button so that you can define what should happen when that button is clicked.

Use logical events to link actions end users take to code in an action diagram. In the following steps, you create logical events that are triggered when your end users click each of the three buttons.

Creating and Mapping Logical Events

After you define these events, you modify the Project Manager function to call the wizard and property sheet functions when each logical event is triggered.

To create logical events on a panel:

  1. In the Design Window, select the Create New Project button.
  2. Right‑click the button and choose Event Mappings from the pop‑up menu.

    The Event Mappings dialog appears.

    Note that there are already two logical events defined: Close and Prompt. Next, you add your own logical event.

  3. Click Create Event.

    The Create Event dialog appears:

    Creating and Mapping Logical Events (2)

  4. Enter Create New Project and click OK.
  5. Your new logical event is now available in the Logical Event list. Select Pressed in the Physical Event list, and Create New Project in the Logical Event list:

    Creating and Mapping Logical Events (3)

    Now, when end users click the Create New Project button, the Create New Project logical event is triggered. Later, you add action diagram code to call the Project Wizard function when this event is triggered.

  6. Click OK.
  7. Repeat Steps 2-6 to create logical events called Maintain Projects and Maintain Employees. Associate the logical events with the Pressed physical events for the corresponding buttons.
  8. Save your changes but keep the Panel Designer open.