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

Delphi控件源码

开发平台:

Delphi

  1. unit uaviscreen;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  5.   ExtCtrls, VrControls, VrHyperLink;
  6. type
  7.   TForm_AviScreen = class(TForm)
  8.     procedure FormKeyPress(Sender: TObject; var Key: Char);
  9.     procedure FormCreate(Sender: TObject);
  10.   private
  11.     { Private declarations }
  12.   public
  13.     { Public declarations }
  14.   end;
  15. var
  16.   Form_AviScreen: TForm_AviScreen;
  17. implementation
  18. {$R *.DFM}
  19. procedure TForm_AviScreen.FormCreate(Sender: TObject);
  20. begin
  21.   Left := 0;
  22.   Top := 0;
  23.   Width := Screen.Width;
  24.   Height := Screen.Height;
  25. end;
  26. procedure TForm_AviScreen.FormKeyPress(Sender: TObject; var Key: Char);
  27. begin
  28.   if Key = #27 then Close;
  29. end;
  30. end.