Using the Editor as an OCX
To use the editor as an OCX, copy the toc30.ocx, ter32.dll and txml2.dll files to your application's directory. Now include the TER.BAS file in your project and select the 'Ter Edit OCX' control from the Custom Control menu option. The editor icon will be displayed in the Visual Basic toolbar. You can create an editor control using this icon from the toolbar.
For an example of the OCX interface, refer to the DMO_OCX (decompress from vbdemo.zip) demo project included in the package.
The data in the edit control can be manipulated by using the properties, methods and the API functions. The 'properties' can be used to manipulate the basic text attributes, whereas, the methods and API functions can be used to manipulate complex attributes. The API functions are declared in the TER.BAS module. Some API functions are described later in this chapter. Please refer to the 'Application Interface Functions' chapter for the complete description of methods and API functions.
Please refer to the ActiveX control chapter for a list of ActiveX control properties and events.