You can start the ibaPDA client with the /config: command line switch.
Using this function you can load an individual configuration. It is therefore possible to operate several clients on one computer. The individual clients can be connected to different servers, each of them with a different layout. The /config: switch requires a configuration file. The configuration file contains the server that the client connects to and the initial position and size of the client window. The directory containing the configuration file is also used as the base directory for the client files, e.g., the layout file, log files, address books, etc.
Example
ibaPDA.exe /config:"c:\ibaPda\Configuration1\Configuration 1.cfg"
The ibaPDA client will use the specified configuration file. The configuration file is an XML file with the following format.
XML configuration file
|
1 2 3 4 5 6 7 8 9 10 11 12 |
<?xml version="1.0"?> <ClientConfiguration> <Servers> <Server> <Address>localhost</Address> <PortNr>9170</PortNr> </Server> </ Servers> <AutoReconnect>false</AutoReconnect> <Monitor>0</Monitor> <FormPlacement>2;3;-1;-1;-1;-1;161;1152;189;867</FormPlacement> </ClientConfiguration> |
Lines 1 to 3
This is the general XML header.
Lines 4 to 9
This section contains the address and port number of the ibaPDA server to which the client will attempt to connect. By setting "AutoReconnect" to "true" or "false", you can specify whether or not the client should automatically attempt to establish a connection to the server. In this case, enter "true" for <AutoReconnect>.
Line 10
The "Monitor" setting determines on which monitor the client will appear. If "Monitor" is set to 0, the primary display will be used. If "Monitor" is set to 1, display number 1 will be used. If "Monitor" is set to 2, display number 2 will be used and so on.
If you are unsure about the numbering of your displays, use the Identify function in the Windows display settings of the relevant PC.
If another monitor is set in the "FormPlacement" setting, the "Monitor" setting is overridden.
Line 11
The "FormPlacement" setting makes the "Monitor" setting obsolete. ibaPDA saves the position, size and state of the main window in "FormPlacement" when it closes. If "FormPlacement" is available, ibaPDA will restore the position, size and status of the main window when ibaPDA starts. It is not advisable to manually change the values in "FormPlacement".
Tip |
|
|---|---|
|
You can simplify the configuration by starting ibaPDA with a configuration file and then set up the display as desired. Afterwards, close the client again. When closing the client, the settings (including the selected monitor) are updated and saved in the configuration file. The next time you start the client with the the same configuration file, the client window opens at the selected position. |
|