
APPENDIX 3 CREATING AN ActiveX CONTROL B-62994EN/02
-420-
APPENDIX 3CREATING AN ActiveX CONTROL
This section describes the creation of an ActiveX control.
The CNC screen of Basic O/peration Package 1 are COM objects that support
visual editing. This CNC screen also has automation functions (property,
method, event), which will be described later. The CNC screen is usually
created as an ActiveX control which is an inproc ActiveX component. The
screen can be used with Visual Basic or Internet Explorer.
Inproc
ActiveX
component
The screen object supports applications with the following automation
functions:
[Method]
• DoFunction (Index As Integer)
Calls a CNC-screen function having the specified Index number.
When the function number is specified as an argument of the
DoFunction method, the corresponding CNC function is called. The
DoFunction method function lists, described later, indicate the
correspondence between the screen function numbers and functions.
[Properties]
• FunctionName (Index As Integer) As String
Obtains the function name corresponding to the function number
specified for Index of DoFunction. When the function number of the
DoFunction method is specified as an argument, the corresponding
function name can be obtained. For a function which requires the
function option, if the function option is not specified on the CNC
side, the FunctionName property will return a null character string
("").