Example: Events Triggering Actions

  • You have:
  • A CimEdit/CimView screen.
  • One object.
  • One group.
  • You create a Screen Open procedure in each.
  • You assign the same event to each. However, the event triggers actions that open different screens.

The type of event you assign affects when each action is triggered.

  • Key Up event example
  • Mouse Up event example

Key Up Event Example

1 CimEdit

You assign a Key Up event for key F12 to trigger an Open Screen action.

You attach the event to the screen, a group and an object.

The Open Screen action is set to a different screen for each, as follows.

Selected Screen Key Up F12 has the action:
Screen Open Assembly Line
Group Open Air House
Object Open Water Delivery.
2 CimView

When a user presses then releases key F12 in CimView, all the screens open.

This is because the same key is selected for each event.

Selected Key Up F12 opens
Screen Assembly Line and Air House and Water Delivery
Group Assembly Line and Air House and Water Delivery
Object Assembly Line and Air House and Water Delivery

Mouse Up Event Example

1 CimEdit

You assign a Mouse Up event to trigger an Open Screen action.

You attach the event to the screen, a group and an object.

The Open Screen action is set to a different screen for each, as follows.

For Screen Mouse Up is configured to trigger
Screen Open Assembly Line
Group Open Air House
Object Open Water Delivery
2 CimView

When a user presses then releases the mouse in CimView, the screen that opens depends on what the mouse clicked.

For Mouse Up opens
Screen Assembly Line
Group Air House
Object Water Delivery