ImageEn, unit iesettings

TIEImageEnGlobalSettings.ColorDialogCustomColors

TIEImageEnGlobalSettings.ColorDialogCustomColors


Declaration

property ColorDialogCustomColors: string;


Description

Specifies the default "Custom Colors" for the Color Dialog.
This will be updated with any user specified colors, so can be used to save the selection between sessions.
Default: Set of pastel colors


Demo

Demo  Demos\Other\ImageEn_Dialogs\ImageEn_Dialogs.dpr


Example

// Set some custom colors
IEGlobalSettings().ColorDialogCustomColors :=
              'ColorA=D670DA' + #13#10 +
              'ColorB=8B3D48' + #13#10 +
              'ColorC=FF901E' + #13#10 +
              'ColorD=ED9564' + #13#10 +
              'ColorE=EBCE87' + #13#10 +
              'ColorF=908070' + #13#10 +
              'ColorG=4F4F2F' + #13#10 +
              'ColorH=2F6B55' + #13#10 +
              'ColorI=008080' + #13#10 +
              'ColorJ=7FFF00' + #13#10 +
              'ColorK=00FC7C' + #13#10 +
              'ColorL=32CD9A' + #13#10 +
              'ColorM=B9DAFF' + #13#10 +
              'ColorN=00D7FF' + #13#10 +
              'ColorO=20A5DA' + #13#10 +
              'ColorP=1E69D2';

// Clear the custom colors (all white)
IEGlobalSettings().ColorDialogCustomColors := 'ColorA=FFFFFF';

// Reset to default set of pastel colors
IEGlobalSettings().ColorDialogCustomColors := '';