Options for ActiveX
UI Toolkit enables you to add ActiveX controls to Toolkit windows, including composite windows. By adding ActiveX components to your application, you can extend its capabilities with a wide variety of interactive and multimedia effects. With the exception of %GRID_CREATE (which is specially designed for GrapeCity's Spread COM control), the ActiveX routines can be used for any ActiveX control. Toolkit automatically uses an ActiveX control (based on the Spread control) when you choose to include ActiveX Toolkit lists in your application.
Requirements
An ActiveX control must be registered with the Windows operating system before it can be used by an application. You can register an ActiveX control manually, or you can use AX_REGISTER, %AX_TKSINGLE, or %GRID_CREATE to register it programmatically. See Registering an ActiveX control for details.
32-bit ActiveX controls can be used only with the 32-bit Runtime, and 64-bit ActiveX controls can be used only with the 64-bit Runtime.
If you use any of the routines in the Synergy ActiveX API, you must include the file DBLDIR:activex.def and compile your program using the -T and -X compiler options. See Synergy ActiveX API for details. (You do not need to link against axlib.elb, though, because Toolkit automatically links to this library when you use the AX_ routines.)
Methods for adding ActiveX controls
You can use the following methods to add ActiveX controls to your Toolkit application:
- Use the ActiveX API. The ActiveX API is a group of routines included in Synergy DBL that enable you to use an ActiveX control in a Synergy application. You don’t need UI Toolkit to use the ActiveX API, but some of these routines are useful if you do use Toolkit. For information, see Synergy ActiveX API.
- Use a single control with a Toolkit container. The most common way to handle ActiveX controls is to use a single ActiveX control with a Toolkit container. UI Toolkit includes routines that simplify this scenario. See Using a single control with a Toolkit container for more information.
- Use multiple controls with a single Toolkit container. UI Toolkit enables you to use multiple controls with a single container. See Using multiple controls with a single container for more information.
- Add the Spread control. UI Toolkit includes a routine specifically designed to make it easy to add GrapeCity's Spread COM control, a spreadsheet encapsulated in an ActiveX control. See Creating a container for the Spread control for more information.
- Add an ActiveX Toolkit list. UI Toolkit includes an ActiveX implementation of the Toolkit list. This implementation enables Toolkit list routines to control an ActiveX list. See Using an ActiveX Toolkit list for more information.