VrShareWin.pas
上传用户:hbszzs
上传日期:2008-08-20
资源大小:628k
文件大小:2k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. {*****************************************************}
  2. {                                                     }
  3. {     Varian Component Workshop                       }
  4. {                                                     }
  5. {     Varian Software NL (c) 1996-2000                }
  6. {     All Rights Reserved                             }
  7. {                                                     }
  8. {*****************************************************}
  9. unit VrShareWin;
  10. {$I VRLIB.INC}
  11. interface
  12. uses
  13.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  14.   StdCtrls, ExtCtrls, VrConst;
  15. type
  16.   TForm_VrShare = class(TForm)
  17.     OkButton: TButton;
  18.     Label1: TLabel;
  19.     Label2: TLabel;
  20.     Label3: TLabel;
  21.     Image3: TImage;
  22.     Bevel1: TBevel;
  23.     Image1: TImage;
  24.     procedure FormCreate(Sender: TObject);
  25.     procedure OkButtonClick(Sender: TObject);
  26.   private
  27.     { Private declarations }
  28.   public
  29.     { Public declarations }
  30.   end;
  31. procedure ShowRegWin;
  32. implementation
  33. {$R *.DFM}
  34. var
  35.   Form_Share: TForm_VrShare;
  36. procedure ShowRegWin;
  37. begin
  38.   if Form_Share.Tag = 0 then
  39.   begin
  40.     Form_Share.ShowModal;
  41.     Form_Share.Tag := 1;
  42.   end;
  43. end;
  44. procedure TForm_VrShare.FormCreate(Sender: TObject);
  45. begin
  46.   Caption := 'About Varian Led Studio';
  47.   Label3.Caption := 'Version '+ VrLibVersion + #13 + '(c) Varian Software NL';
  48.   Label1.Caption := 'Thank you for evaluating Varian Led Studio ' + VrLibVersion + '...';
  49.   Label2.Caption := 'This is not free software. You are hereby allowed '+
  50.                     'to use this software for evaluation purposes without '+
  51.                     'charge for a period of 30 days. If you use this software '+
  52.                     'after the 30 day evaluation period a registration fee is '+
  53.                     'required. See the enclosed documentation for more info '+
  54.                     'on how to register.';
  55. end;
  56. procedure TForm_VrShare.OkButtonClick(Sender: TObject);
  57. begin
  58.   Close;
  59. end;
  60. initialization
  61.   Form_Share := TForm_VrShare.Create(nil);
  62. finalization
  63.   Form_Share.Free;
  64. end.