Sign in Join
Wiki copytemporary

ColorBox

Deutsch · English · Français

About

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

This component was designed for cross-platform applications.

Author

Darius Blaszijk

License

LGPL

Download

Warning: This component is now part of Lazarus/the LCL; the download is only of historical interest.

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

The download can be found on the Lazarus CCR Files page.

Change Log

Dependencies / System Requirements

Notes

Status: Beta

Issues: Tested on Windows. Needs testing on Linux.

Installation

Warning: ColorBox is currently included in Lazarus; the instructions below only apply for manual installs

Creation at runtime

To create the component at runtime use the following code :

pascal
Uses ...ColorBox...

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.

See also

TColorBox documentation


From the Free Pascal wiki, page "ColorBox", as it stood on 2022-05-11 after a change by Zoltanleo, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.