ColorBox/fr

This is an old revision of ColorBox/fr, edited by Paulatreides at . The current revision is 39519.

New page: {{ColorBox}} ===About=== ColorBox is a component that lets you select any predefined color with preview. There are two predefined palettes available: * cpDefault (some frequently used n...

About

ColorBox is a component that lets you select any predefined color with preview. There are two predefined palettes available:

The download contains the component, and a patch to make use of the cpFull option.

This component was designed for cross-platform applications.

Author

Darius Blaszijk

License

LGPL

Download

The latest stable release can be found on the Lazarus CCR Files page.

Change Log

Dependencies / System Requirements

Notes

This component is now part of the LCL.

Status: Beta

Issues: Tested on Windows. Needs testing on Linux.

Installation

Creation at runtime

To create the component at runtime use the following code :

procedure TForm1.Form1Create(Sender: TObject);
begin
  cbColorBox := TColorBox.Create(Self);
  cbColorBox.Parent := Self;
  cbColorBox.Left := 100;
  cbColorBox.Top := 100;
  cbColorBox.Palette := cpFull;
end;

Make sure you don't forget to declare a global variable cbColorBox.