aboutunit.pas 857 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. unit AboutUnit;
  2. interface
  3. uses
  4. Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons,
  5. ExtCtrls, StdCtrls, Imaging, DemoUtils;
  6. type
  7. { TAboutForm }
  8. TAboutForm = class(TForm)
  9. BitBtn1: TBitBtn;
  10. Image: TImage;
  11. Image2: TImage;
  12. labImaging: TLabel;
  13. ImLabel1: TLabel;
  14. LabVersion: 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. {$R *.lfm}
  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. end.