It is possible to add ActiveX controls to Dialog Builder dialogs and programmatically manipulate them using Origin C. The ability to easily add user created and third party ActiveX controls to Dialog Builder dialogs greatly expands the possibilities available to developers who create custom applications in Origin. ActiveX controls are added to Dialog Builder dialogs much the same way as Visual C++ controls are added with a few additional steps. This section describes how to add ActiveX controls to Dialog Builder dialogs and refers to two Origin sample Dialog Builder dialogs containing ActiveX controls. The section Creating Complex Dialogs and Wizards with Dialog Builder describes the general process of creating Dialog Builder dialogs and should be reviewed first.
Add an ActiveX control to a Dialog Builder dialog.
regsvr32 <your ActiveX component name>
The resource-only DLL containing the Dialog Builder dialog with your ActiveX control is now ready to be launched and manipulated in Origin using Origin C. Origin contains a number of example dialogs which fully implement Dialog Builder dialogs some containing ActiveX controls. Source files that launch and manipulate the dialogs are also included. To learn how to launch and manipulate a Dialog Builder dialog with an ActiveX control first review the section Origin C Dialog Builder Examples and then follow the steps in the next section Programmatically Accessing a Dialog Builder Dialog with an ActiveX Control.