UFormLogo.pas

  1. unit UFormLogo;
  2.  
  3. interface
  4.  
  5. uses
  6. Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  7. Dialogs, ExtCtrls, StdCtrls;
  8.  
  9. type
  10. TFormLogo = class(TForm)
  11. Image1: TImage;
  12. Label1: TLabel;
  13. Label2: TLabel;
  14. Label3: TLabel;
  15. procedure Image1Click(Sender: TObject);
  16. procedure FormKeyPress(Sender: TObject; var Key: Char);
  17. procedure FormCreate(Sender: TObject);
  18. private
  19. { Private declarations }
  20. public
  21. Cerrable: boolean;
  22. end;
  23.  
  24. var
  25. FormLogo: TFormLogo;
  26.  
  27. implementation
  28.  
  29. {$R *.dfm}
  30.  
  31. procedure TFormLogo.Image1Click(Sender: TObject);
  32. begin
  33. if Cerrable then self.Close;
  34. end;
  35.  
  36. procedure TFormLogo.FormKeyPress(Sender: TObject; var Key: Char);
  37. begin
  38. if Cerrable then self.Close;
  39. end;
  40.  
  41. procedure TFormLogo.FormCreate(Sender: TObject);
  42. begin
  43. Cerrable := false;
  44. end;
  45.  
  46. end.
  47.  

Proinf.net