ColorBox
From Lazarus-ccr
Deutsch (de) English (en) Français(fr)
Contents |
[edit] About
ColorBox is a component that lets you select any predefined color with preview. There are two predefined palettes available:
- cpDefault (some frequently used named colors)
- cpFull (all named colors)
The download contains the component, and a patch to make use of the cpFull option.
This component was designed for cross-platform applications.
[edit] Author
[edit] License
[edit] Download
The latest stable release can be found on the Lazarus CCR Files page.
[edit] Change Log
- Version 1.0 2005/05/16
[edit] Dependencies / System Requirements
- None
[edit] Notes
This component is now part of the LCL.
Status: Beta
Issues: Tested on Windows. Needs testing on Linux.
[edit] Installation
- Apply the patch colorbox.diff
- Install the component or create it at runtime
[edit] 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.
