Calling Methods at Runtime
SECTION 5 ActiveX Objects
77
5-5
Calling Methods at Runtime
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
For more details see the CX-Supervisor Script Language Reference Manual.
5-6
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.
Note:
In previous versions Event scripts could be added from the Animation Editor
but the method above provides more efficiency as all event scripts are loaded
just once on page initialisation.
Summary of Contents for CX-Supervisor
Page 1: ...CX Supervisor Software Cat No W10E EN 01 User Manual Software Release 3 1...
Page 3: ...Copyright Notice 2...
Page 16: ...15...
Page 17: ...16...
Page 27: ...Tip of the Day SECTION 1 Graphics Editor 26...
Page 35: ...CX Supervisor Preferences SECTION 2 Pages 34...
Page 79: ...Responding to Events SECTION 5 ActiveX Objects 78...
Page 115: ...Printing the Graphics Library SECTION 7 Graphics Library 114...
Page 181: ...Data Logging SECTION 11 Data Logging 180...
Page 201: ...Examples SECTION 12 Databases 200...
Page 243: ...Performance Monitor SECTION 16 Application Analysis Performance Monitor 242...
Page 253: ...Using with Omron s CX Server OPC SECTION 17 Using CX Supervisor as an OPC Cli 252...
Page 259: ...Creating a CX Supervisor Client application SECTION 18 Connecting to a remote CX 258...
Page 263: ...Adding a Point Linked to a Parameter SECTION 19 Connecting to Omron Industrial 262...
Page 271: ...Data Logging SECTION 20 Best Practices 270...
Page 275: ...Configuring a Server PC running Windows NT or 2000 Appendix A Configuring a PC 274...
Page 277: ...Appendix B Frequently Asked Questions 276...
Page 296: ...Appendix B Frequently Asked Questions 295...
Page 297: ...Appendix B Frequently Asked Questions 296...
Page 298: ...Appendix B Frequently Asked Questions 297...
Page 299: ...Appendix B Frequently Asked Questions 298...
Page 333: ...Revision history 332...