Configuring Imagenation through the API

 

Many of the settings controlled by a CFG file can also be controlled through the Imagenation APIs or by Image a•X.

· The keynames in the [System] section of the SRC file have API numbers assigned to them for use in the C or the DDE APIs.

· The Configuration Control from Image a•X contains commands that control most of the CFG file settings.

To change CFG settings through the API:

· In Image a•X, use the Configuration Control commands.

· In the C API, use the IN_SetUIConfiguration and IN_GetUIConfiguration functions.

· In the DDE API, use the SetUIConfiguration and GetUIConfiguration transactions.

For the API numbers to use with the functions and transactions, see C and DDE API numbers for CFG settings.

You can also request and specify the CFG file that is currently being used with Imagenation. This allows you to switch CFG files programmatically.

To request and specify the current CFG file:

· In Image a•X, use the CFGFilename property.

· In the C API, use the IN_GetCFGFilename and IN_SetCFGFilename functions.

· In the DDE API, use the GetCFGFilename and SetCFGFilename transactions.

For more information, refer to the Imagenation DDE API Help (ddeapi.hlp) or the Imagenation OLE Automation Help (oleauto.hlp), the Imagenation C API Help (capi.hlp), or the Image a•X Help (Imageax.hlp).

See also

C and DDE API numbers for CFG settings

Add New Commands With the API