Properties (Magic xpa 2.x)
The properties for a Remote COM object are:
|
|
ApplicationName
|
This property keeps the name of the application by which all methods should be handled.
Each public program that corresponds to a Method call is expected to be found in the application defined by this property. At any stage this property can be set or retrieved. Any modification of the application name affects the next method call.
|
WindowHandle
|
This property keeps the window handle value of the loaded Magic xpa engine. The window handle can be retrieved by this property and cannot be set manually.
For example: MyObject.WindowHandle can return a numeric value.
When no Magic xpa engine is loaded for the object or when the loaded engine is in background mode, the property returns zero.
|
CommandLineParams
|
A series of added environment parameters to be used when loading a Magic xpa engine. Any modification to this property can take effect only when the property is set prior to a MagicEngineLoad method call.
For example, MyObject.CommandLineParams="/ApplicationStartup=B" loads the engine in background mode.
|
MagicEnginePath
|
This property sets the path of the Magic xpa runtime engine. Any modification to this property can take effect only when the property is set prior to a MagicEngineLoad method call.
If no engine path is set, the Magic xpa runtime engine is loaded from the installation directory of the Magic xpa product as defined in the registry.
|
EngineLoadTimeout
|
The timeout after which the MagicEngineLoad method will fail if it could not load and connect to a Magic xpa runtime engine. The Timeout value is defined in seconds. A zero value means zero seconds, which results in an immediate failure of the MagicEngineLoad method.
|