Overview SECTION 5 ActiveX Objects
75
SECTION 5
ActiveX Objects
This chapter describes the process of using ActiveX objects within CX-
Supervisor applications.
5-1 Overview
The Microsoft Windows ActiveX technology allows objects called 'components'
to be developed, and are used by inserting them into an ActiveX container, like
CX-Supervisor. ActiveX components may perform many different functions,
which can be graphical or non-graphical, but they follow standard rules for
defining their Properties, Methods and Events. Properties are like settings, for
example a control's colour would be a property. Methods are like functions or
actions that can be called for example a control might support a Redraw
method. Events are actions the control may create, like OnLeftClick. Following
these standard rules allows any ActiveX control from any manufacturer to
work in any container.
5-2 Inserting a new object
A new ActiveX control may be inserted on the page as follows:
1, 2, 3… 1. Click the page in which the object is to be inserted.
2. Turn on the ActiveX toolbar from the View | Toolbars menu.
3. If the control you require already exists on the ActiveX toolbar:
a. Select the required control.
or if the required control is not on the toolbar:
b. Click button and select the required component from the dialog
box:
4. Draw a rectangle in the desired position.
5-3 Editing Properties at Design Time
The properties of ActiveX objects can be edited during the design stage using
the following procedure:
1, 2, 3… 1. Open the ActiveX Property Browser by clicking the button in the toolbar
or by selecting the ActiveX Property Browser option from the Utilities
menu.