aboutunit.pas 906 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. labImaging: TLabel;
  14. ImLabel1: TLabel;
  15. LabVersion: TLabel;
  16. Label1: TLabel;
  17. procedure FormShow(Sender: TObject);
  18. private
  19. { private declarations }
  20. public
  21. { public declarations }
  22. end;
  23. var
  24. AboutForm: TAboutForm;
  25. implementation
  26. { TAboutForm }
  27. procedure TAboutForm.FormShow(Sender: TObject);
  28. begin
  29. LabVersion.Caption := 'version ' + Imaging.GetVersionStr;
  30. if Image.Picture.Graphic = nil then
  31. begin
  32. Image.Picture.LoadFromFile(GetDataDir + PathDelim + 'LogoAlpha.png');
  33. end;
  34. end;
  35. initialization
  36. {$I aboutunit.lrs}
  37. end.