Read specifier for selection property Use GetSelection to convert the item selected into a system color. Write specifier for selection property Use SetSelection to set the item in the ColorBox when appointed a color from code. Write specifier for the Palette property Use SetPalette to determine wether to reset the colorlist in the ColorBox based on the type of palette. Write specifier for the setstyle property Use SetStyle to prevent the style to be changed to anything else than csOwnerDrawFixed. Method that draws a color item in the colorbox Use DrawItem to customdraw an item in the ColorBox. A color preview is drawn and the item rectangle is made smaller and given to the inherited method to draw the corresponding text. The Brush color and Pen color where changed and reset to their original values. Constructor for colorbox Use Create to create an instance of TColorBox and initialize all properties and variables. Write specifier for the ColorList property Use SetColorList to fill the itemlist in the ColorBox with the right color entries. Based on the value of the Palette property. Register procedure for colorbox This procedure registers the component to the Addtional menu