Assign an action to an ActiveX event

In the ActiveX Control Events dialog box you can view the events associated with the selected ActiveX object, assign a command or macro to an event, and attach a tag to an event’s parameter. When you select an event, its parameters are displayed in the Event Parameter list. You can attach an HMI tag to any of these parameters. At runtime, when the event occurs, the value of the parameter is sent to the tag.
TIP:
Note:
  • The property type and description are provided by the ActiveX object. They are for display only.
  • Click ? to get more information about the object and its events.
  • You can copy information from the Methods help and paste it elsewhere, such as in the ActiveX Control Events dialog box.
  • Select an event and then click Clear to detach a command or macro from an event, or to detach a tag from an event parameter.
To view the events that are assigned to an ActiveX object:
  1. In a graphic display, right-click an
    ActiveX object
    .
  2. In the context menu click
    ActiveX Events
    .
  3. In the
    ActiveX Control Events
    dialog box, the events associated with the selected ActiveX control are displayed in the
    Select an ActiveX event
    list.
To assign a command or macro to an event:
  1. In the
    Select an ActiveX event
    list, click the event you intend to assign a command or macro to.
  2. In the
    Attach a command or macro to an event
    field, type the command and its parameters, or click the browse button (
    ...
    ) beside it to open the
    Command
    wizard and create a command string in it.
To attach a tag to an event parameter:
  1. In the
    Select an ActiveX event
    list, click the event you intend to assign a command or macro to.
  2. In the
    Event Parameter
    , click the event parameter you intend to attach a tag to.
  3. In the
    Tag
    field, type the tag name, or click the browse button
    (...)
    to open the tag browser and select a tag.
To log an event to the Diagnostics log file:
  1. In the
    Select an ActiveX event
    list, click the event you intend to log in the Diagnostics log file.
  2. Select the check box beside
    Log event to Diagnostics Log
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal