LoadColPalFile

Declaration: LoadColPalFile(FName: string; var ColPal: TColorPalette): integer;
Loads a user-defined color palette from the harddisk. The parameter FName specifies the filename of the color palette, the variable parameter ColPal returns the read color palette.

The function returns the following error codes:

 0 ... everything OK
-1 ... the color palette file does not exits
-2 ... the result of the color palette on disk is non-standard and cannot be loaded