CompForm.pas
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:1k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit CompForm;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  5.   OleServer, StdCtrls, Tlibdemo_TLB;
  6. type
  7.   TForm1 = class(TForm)
  8.     Button1: TButton;
  9.     Button2: TButton;
  10.     FirstServer1: TFirstServer;
  11.     procedure Button1Click(Sender: TObject);
  12.     procedure Button2Click(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.   end;
  18. var
  19.   Form1: TForm1;
  20. implementation
  21. {$R *.DFM}
  22. procedure TForm1.Button1Click(Sender: TObject);
  23. begin
  24.   FirstServer1.ChangeColor;
  25. end;
  26. procedure TForm1.Button2Click(Sender: TObject);
  27. begin
  28.   FirstServer1.Value := FirstServer1.Value + 1;
  29. end;
  30. end.