The generated Visual Basic OCX is generated around a COM object that
is written in C++. This is contained in the CHM_LIB3.dll.
This object
has many useful methods available on it. Some of these are described in
the Chameleon Scripting API section. One very
useful API is the one that can be used for changing the configuration
of the Chameleon engine programmatically:
' To set the current configuration number
Engine.InternalEngine.CurrentConfigIndex = 1
' To find out the number of configurations in the current vmd file
Engine.InternalEngine.CountOfConfig
' To access the name of configuration N
Engine.InternalEngine.ConfigName (1)