function ShowColorDlg:TColor; begin with TColorDialog.Create(nil) do begin Options :=[cdFullOpen,cdPreventFullOpen,cdShowHelp,cdSolidColor,cdAnyColor]; if Execute then Result:=Color; end; end;
procedure TForm1.btn_ShowColorDlgClick(Sender:
TObject); begin ShowColorDlg; end;