Einzelnen Beitrag anzeigen

netmario

Registriert seit: 7. Okt 2009
73 Beiträge
 
Delphi 7 Personal
 
#20

Re: [Delphi]Farben

  Alt 8. Okt 2009, 18:26
Delphi-Quellcode:
procedure TForm1.SRotChange(Sender: TObject);
begin
  rot:=SRot.Position;
  Zrot.Caption:=IntToStr(Rot);
  FRot.Color:=rot;
  FRot.Color:=RGB(rot,0,0);
  FarbenPanel.Color := RGB(Rot, Gruen, Blau);
  Label1.Caption:= IntToHex(GetRValue(Farbenpanel)) + IntToHex(GetGValue(Farbenpanel)) + IntToHex(GetBValue(Farbenpanel));
end;
Da kommt [Error] Unit1.pas(49): Incompatible types: 'Cardinal' and 'TPanel'
Mario
  Mit Zitat antworten Zitat