Customizing PxPlus

INI Files (Windows)

 

Various properties of the PxPlus Windows environment can be specified with the use of flat text files identified by an .INI (or .PVX) suffix. The contents of these files must adhere to the standard format for Windows initialization files: headers are enclosed in square brackets and parameters are indicated by name, = (equals sign), and associated value.

INI parameters can be used to load/maintain several environment settings, including:

The PxPlus INI file is passed as an argument to pxplus.exe on the Command line.

See Launching PxPlus.

Specifying an INI File

If an INI file is not specified, then PxPlus resorts to the default pxplus.ini. However, there are many reasons to create and use application-specific INI files:

The INI file that PxPlus uses when starting is determined on the Command line.

Example:

c:\pxplus\pxplus.exe c:\myapp\ myapp.ini mystartprog  - ARG myarguments
c:\pxplus\pxplus.exe c:\myapp\ myapp.ini windx
c:\pxplus\pxplus.exe c:\myapp\ myapp.ini *nthost

Note:
If the INI file is specified on the WindX, *NTSlave or *NTHost Command line, then any instances of PxPlus started from within the PxPlus session will make use of the same INI file automatically.

File Locations

The following search rules apply to the default pxplus.ini file and for any INI file specified on the Command line that does not have an explicit path:

1. Current user's data directory
2. All users' data directory
3. Windows directory (except on Vista)
4. Current directory
5. Executable directory

When PxPlus needs to update an INI for items such as the last window state, it will update the INI file found during PxPlus initialization, based on the search pattern above. If no INI is found during initialization and PxPlus needs to update some INI values, then a new pxplus.ini file will be automatically created/updated in the directory where pxplus.exe was executed.

INI files can also be set to Read Only, which prevents PxPlus from updating window properties on exit. This ensures that no matter the location (or in what state) the window is in when PxPlus is exited, it will be restored to default properties when PxPlus is restarted.

See Also

INI Contents