Sign in Join
Wiki copytemporary

Revision 2 of 2, by Wp on 8-2-2019. The page as it is now.

TColorListBox

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.