customColors

Type: Integer Array

The customColors property of the CMDColor class contains a reference to an array of custom colors for the common Color dialog.

The array contains entries that are initialized to the Windows default values. This array can be changed to add user-defined custom colors. Any custom colors set in the common dialog by users are returned.

Only the first 16 entries of the array are used.

Colors customized in the common dialog are retained during an application session. When you create a CMDColor object, custom colors are initialized from the internal custom color list of the application. When the color dialog closes, the application custom color list is updated from the returned custom colors list. Deleting the CMDColor object and then subsequently creating another therefore retains any custom colors that were set during the same application session.