Sign in Join
Wiki copytemporary

ColorBox: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: ColorBox

OldNewLine
1+### About
2+
3+ColorBox is a component that lets you select any predefined color with preview. There are two predefined palettes available:
4+
5+- cpDefault (some frequently used named colors)
6+- cpFull (all named colors)
7+
8+This component was designed for cross-platform applications.
9+
10+### Author
11+
12+Darius Blaszijk
13+
14+### License
15+
16+[LGPL](http://www.opensource.org/licenses/lgpl-license.php)
17+
18+### Download
19+
20+> **Warning:** This component is now part of Lazarus/the LCL; the download is only of historical interest.
21+
22+The download contains the component, and a patch to make use of the cpFull option.
23+
24+The download can be found on the [Lazarus CCR Files page](http://sourceforge.net/project/showfiles.php?group_id=92177).
25+
26+### Change Log
27+
28+- Version 1.0 2005/05/16
29+
30+### Dependencies / System Requirements
31+
32+- None
33+
34+### Notes
35+
36+Status: Beta
37+
38+Issues: Tested on Windows. Needs testing on Linux.
39+
40+### Installation
41+
42+> **Warning:** ColorBox is currently included in Lazarus; the instructions below only apply for manual installs
43+
44+- Apply the patch colorbox.diff
45+- Install the component or create it at runtime
46+
47+### Creation at runtime
48+
49+To create the component at runtime use the following code :
50+
51+``` pascal
52+Uses ...ColorBox...
53+
54+procedure TForm1.Form1Create(Sender: TObject);
55+begin
56+ cbColorBox := TColorBox.Create(Self);
57+ cbColorBox.Parent := Self;
58+ cbColorBox.Left := 100;
59+ cbColorBox.Top := 100;
60+ cbColorBox.Palette := cpFull;
61+end;
62+```
63+
64+Make sure you don't forget to declare a global variable cbColorBox.
65+
66+### See also
67+
68+[TColorBox documentation](https://lazarus-ccr.sourceforge.io/docs/lcl/colorbox/tcolorbox.html)
69+
70+---
71+*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](/wiki-contact).*
72+Category: Components
73+Category: LCL
74+Category: Lazarus
75+Category: Lazarus-CCR

Back to history