unit UnitScroolbar;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ComCtrls;
type
TForm1 = class(TForm)
Label2: TLabel;
Label3: TLabel;
scbRed: TScrollBar;
scbGreen: TScrollBar;
scbBlue: TScrollBar;
Label1: TLabel;
Button1: TButton;
procedure scbRedChange(Sender: TObject);
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.scbRedChange(Sender: TObject);
begin
form1.Color:=RGB(scbRed.Position,scbGreen.Position,scbBlue.Position );
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
CLOSE;
end;
end.