unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls, StdCtrls;
type
TForm1 =
class(TForm)
FRot: TPanel;
SRot: TScrollBar;
ZRot: TLabel;
FGruen: TPanel;
ZGruen: TLabel;
SGruen: TScrollBar;
FBlau: TPanel;
ZBlau: TLabel;
SBlau: TScrollBar;
FarbenPanel: TPanel;
procedure SRotChange(Sender: TObject);
procedure SGruenChange(Sender: TObject);
procedure SBlauChange(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
Farben,rot,gruen,blau:Integer;
Farbe:TColor;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.SRotChange(Sender: TObject);
begin
rot:=SRot.Position;
Zrot.Caption:=IntToStr(rot);
FRot.Color:=rot;
end;
procedure TForm1.SGruenChange(Sender: TObject);
begin
Gruen:=SGruen.Position;
ZGruen.Caption:=IntToStr(Gruen);
FGruen.Color:=Gruen;
end;
procedure TForm1.SBlauChange(Sender: TObject);
begin
Blau:=SBlau.Position;
ZBlau.Caption:=IntToStr(Blau);
FBlau.Color:=Blau;
end;
end.