Creating activex objects – Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual

Page 499

Advertising
background image

17

C

REATING

GRAPHIC

OBJECTS

17–57

• •

17

Pla
ceho

lde

r

In FactoryTalk View you can use events to change the value of a tag, or to run a
FactoryTalk View command or macro. When the event occurs, the command or macro
runs. To use the ActiveX object to change a tag’s value, associate the tag with one of
the object’s event parameters.

Methods

are functions implemented in the ActiveX object, that make it possible for

external actions to change the object’s appearance, behavior, or properties.

A call to a method might be made in response to events from other controls and could
trigger other events.

You can use the FactoryTalk View Invoke command as the external event that calls a
method. For more information about the Invoke command, see the FactoryTalk View
Site Edition Help.

Creating ActiveX objects

When you create an ActiveX object in a graphic display, you are actually inserting an
object made by another application.

To create an ActiveX object in a graphic display

1. From the Objects menu, select ActiveX Control, and then drag the tool to create a box

the size needed to contain the object.

2. In the Insert an ActiveX Control dialog box, select an object from the list that is

presented.

For details about inserting and registering ActiveX objects, see the FactoryTalk View Site
Edition Help.

Setting up ActiveX objects to interact with FactoryTalk View

To set up an ActiveX object to interact with FactoryTalk View you can:

Connect the object’s properties to tags. For details, see “Assigning tags and
expressions to objects” on page 16-23.

Connect the object’s methods to tags. For details, see “Connecting tags to an object’s
methods” on page 18-26.

Connect the object’s events to tags. For details, see “Connecting tags to an ActiveX
object’s events” on page 18-26.

Use VBA code. For more information, see Appendix C, Using the SE Client object
model and display code.

Advertising