Using ActiveX Control/TypeLib

To use Windows ActiveX control (also named as OCX) in Windows Form Application, you should follow these steps as below First, you should convert the control to EPL Library format, please use menu of “Tool” -> “Convert TypeLib/OCX to Library”

EPL

Select OCX component that you need under “OCX Control” root in the popup dialog,

EPL

If the control doesn’t list, you can click “Register Control” and register the specified control to windows system,

EPL

After you selected a control, click “Next” to display the information of the control,

EPL

EPL

You can edit each name and description of each object, method, property, event etc. Click Save button to convert and save the control to an .npk file (Package Library File),

EPL

And the EPL will query you to copy this file to EPL installation directory as below,

EPL

confirm this dialog with Yes button to restart EPL.

When next time you start EPL, please click “Tools” -> “Library Options” menu to check this new added control,

EPL

you’ll find the previous added control has been added to your EPL development environment, you can use the control just like using the common controls of EPL Library

EPL

Notice:

If you already has a npk file corresponding to a control, you just need copy the npk file to sub directory of “lib” of EPL installation directory, and check this control in “Tools” ->”Library Options” menu.

To use Windows Type Library is almost same as use ActiveX control, you just import the TypeLib like ActiveX control, define object of TypeLib as declare a variable in source code, and use it as a normal object. To use object event, you need drag a object-related event control in the External Event tab to a form, and use “AttachEvent” method of the original object to enable the event control.