Sign in Join
Wiki copytemporary

Revision 2 of 2, by Paskal on 8-2-2023. The page as it is now.

TColorDialog

TColorDialog is a dialog that aids in selecting color from a palette. It can be found on the Dialogs tab of the Component Palette.

Example

pascal
procedure TForm1.Button1Click(Sender: TObject);
begin
  if ColourDialog1.Execute then
    Label1.Font.Color := ColourDialog1.Color;
end;

See also


From the Free Pascal wiki, page "TColorDialog", as it stood on 2023-08-02 after a change by Paskal, 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.