ColorBox Control

Hierarchy: TObject - TPersistent - TComponent - TControl - TWinControl - TCustomList - TCustomCombo - TCustomComboBox - TCustomColorBox - TColorBox

This control places a list control that includes the colours available in the current system. The user can choose from this list and properties on the screen can be set to the chosen colour. 

The colour of text can be set with code like this:

memo1.Font.color:=colorbox1.Selected;
richedit1.Font.Color:=colorbox1.Selected;

Back to Tutorial

Back to Palette List