QPix Command Reference
![]() |
![]() |
QPx_SetCustomIcon(filePath; customIcon):error | |||
![]() |
filePath | Text | Full path name |
![]() |
customIcon | Picture | Custom icon |
![]() |
error | Longint | Error result |
Sets the custom icon of a file.
Parameter filePath is the full path name to the file. The file need not be an image; it can be any kind of file.
Parameter customIcon is a 4D picture that will become the custom icon of the file. It is recommended that this picture is 128 x 128 pixels maximum.
Note: This command is available on Mac OS only; Windows does not support custom icons for files.
Related commands
QPx_GetCustomIcon | Retrieves the custom icon of a file |
QPx_ClearCustomIcon | Clears the custom icon of a file |