aboutunit.pas 927 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. unit AboutUnit;
  2. {$mode objfpc}{$H+}
  3. interface
  4. uses
  5. Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons,
  6. ExtCtrls, StdCtrls, Imaging, DemoUtils;
  7. type
  8. { TAboutForm }
  9. TAboutForm = class(TForm)
  10. BitBtn1: TBitBtn;
  11. Image: TImage;
  12. Image2: TImage;
  13. ImLabel: TLabel;
  14. ImLabel1: TLabel;
  15. Label1: TLabel;
  16. procedure FormShow(Sender: TObject);
  17. private
  18. { private declarations }
  19. public
  20. { public declarations }
  21. end;
  22. var
  23. AboutForm: TAboutForm;
  24. implementation
  25. { TAboutForm }
  26. procedure TAboutForm.FormShow(Sender: TObject);
  27. begin
  28. ImLabel.Caption := 'Vampyre Imaging Library version ' + Imaging.GetVersionStr;
  29. if Image.Picture.Graphic = nil then
  30. Image.Picture.LoadFromFile(GetRootDir + PathDelim + 'Doc' + PathDelim +
  31. 'Common' + PathDelim + 'logo.png');
  32. end;
  33. initialization
  34. {$I aboutunit.lrs}
  35. end.