Sign in Join
Wiki copytemporary

TColorListBox

English · Esperanto · Français · Suomi · Русский

A TColorListBox is a component that shows a (scrollable) list of colors from which the user can select one. It is available from the Additional tab of the Component Palette.

Specific properties of TColorListBox are:

pascal
  procedure TForm1.ColorListBox1GetColors(Sender: TCustomColorListBox; Items: TStrings);
  begin
    Items.AddObject('Gold', TObject(PtrInt($00D7FF)));
    Items.AddObject('Chocolate', TObject(PtrInt($1E69D2)));
    Items.AddObject('Light blue', TObject(PtrInt($E6D8AD)));  
  end;

==See also==


From the Free Pascal wiki, page "TColorListBox", as it stood on 2019-08-02 after a change by Wp, 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 2, last changed by WikiArchive .

Talk about this page

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