Difference between revisions of "ColorBox"

From Lazarus wiki
Jump to navigationJump to search
(Category and code highlighting)
Line 55: Line 55:
  
 
[[Category:Components]]
 
[[Category:Components]]
 +
 +
[http://www.prlog.org/11289974-phone-number-lookup-verizon-phone-number-reverse-lookup-to-get-information-you-need-quickly.html reverse lookup]
 +
 +
[http://thetvtopc.com/Reverse_Cell_Phone_Lookup_Number reverse phone lookup cell]

Revision as of 19:43, 2 January 2012

Deutsch (de) English (en) français (fr)

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.

Author

Darius Blaszijk

License

LGPL

Download

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

Change Log

  • Version 1.0 2005/05/16

Dependencies / System Requirements

  • None

Notes

This component is now part of the LCL.

Status: Beta

Issues: Tested on Windows. Needs testing on Linux.

Installation

  • Apply the patch colorbox.diff
  • Install the component or create it at runtime

Creation at runtime

To create the component at runtime use the following code :

<delphi>procedure TForm1.Form1Create(Sender: TObject); begin

 cbColorBox := TColorBox.Create(Self);
 cbColorBox.Parent := Self;
 cbColorBox.Left := 100;
 cbColorBox.Top := 100;
 cbColorBox.Palette := cpFull;

end;</delphi>

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

reverse lookup

reverse phone lookup cell