![background image](http://html1.mh-extra.com/html/omron/cx-supervisor-v2-0/cx-supervisor-v2-0_user-manual_744213095.webp)
CHAPTER 5 – ActiveX Objects
OMRON
Page 72
Release 2.0
Reading and Writing Properties at Run Time
ActiveX properties can be read and written at runtime, for example to change values or colours as
required. This can be achieved using the CX-Supervisor script functions GetProperty and
PutProperty, or alternatively in VBScript using the normal dot syntax for example
@VBSCRIPT
Display1.Value = 100
@ENDIF
For more details see the
CX-Supervisor Script Language Reference Manual
.
Calling Methods at Run Time
ActiveX methods can also be called at runtime. This is achieved by using the Supervisor script
function Execute or alternatively in VBScript using the normal dot syntax for example
@VBSCRIPT
CommonDialog1.ShowOpen
@ENDIF
Again for more details see the
CX-Supervisor Script Language Reference Manual
.
Responding to Events
Some ActiveX components are written to generate events on certain conditions, like mouse clicking
or user input or error conditions. You can write a script to execute whenever any event occurs. These
scripts are defined as subroutines in the page initialisation script as they may be called any time the
page is open. To easily add these subroutines, from the ActiveX property browser, click the ‘Events’
tab. This shows all the event types for this control and any parameters the event may pass, for
example the code number of the key pressed. Select the event name to add or edit the script for, and
click the square edit button.
Summary of Contents for CX-SUPERVISOR - V2.0
Page 2: ...CX Supervisor User Manual Software Release 2 0...
Page 3: ......
Page 5: ...CX Supervisor User Manual OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor User Manual OMRON Page iv Revision 2 0...
Page 11: ...CX Supervisor User Manual OMRON Page viii Revision 2 0...
Page 13: ...CX Supervisor User Manual OMRON Page x Revision 2 0...
Page 15: ...CX Supervisor User Manual OMRON Page xii Revision 2 0...
Page 17: ...CX Supervisor User Manual OMRON Page xiv Revision 2 0...
Page 19: ...CX Supervisor User Manual OMRON Page xvi Revision 2 0...
Page 21: ...CX Supervisor User Manual OMRON Page xviii Revision 2 0...
Page 23: ......
Page 67: ......
Page 97: ......
Page 137: ...CHAPTER 7 Graphics Library OMRON Page 114 Release 2 0...
Page 183: ...CHAPTER 9 Animation OMRON Page 160 Release 2 0...
Page 215: ......
Page 263: ......
Page 269: ......
Page 274: ...OMRON CHAPTER 16 Connecting to Omron Industrial Components Release 2 0 Page 251...
Page 275: ......
Page 285: ......
Page 319: ......
Page 331: ......
Page 351: ......
Page 359: ...GLOSSARY OF TERMS CX Supervisor User Manual OMRON Page 336 Release 2 0...