Editor Control as an OCX
In PowerBuilder, an OCX is incorporated into you application as a Standard User Object. You need to create a new Standard User Object of type olecontrol. Select the user object button in the toolbar. Select New. In the New User Object window, select the button for Standard Visual and click OK. In theSelect Standard Visual Type window, select olecontrol and click OK. The Insert Object window will open.
In the Insert Object window, select the InsertControl tab. The TER control will appear in the list of OCX controls that have been registered. If the TER control does not appear in the list, click the Register New button. Locate the toc30.ocx file in the browse window, select it and click the open button. This will register the TER control and TER will now appear in the list of registered controls. Double click on TER in the list to create your user object. The TER OCX will open in the user object painter. Save your user object and give it a name, i.e. u_ter. This PowerBuilder user object consists of the TER OCX in a PowerBuilder OCX container.
With the user object u_ter open in the user object painter, you can change the initial OCX properties. Right click on the control and select OCX Properties. Check the appropriate properties for your application.
The user object, u_ter, can be placed on windows in your application just as you would place datawindows and other PowerBuilder objects.