aboutunit.pas 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. ImageLogo: TImage;
  11. ImageLaz: TImage;
  12. LabGitHub: TLabel;
  13. LabImaging: TLabel;
  14. LabWeb: TLabel;
  15. LabVersion: TLabel;
  16. LabDemo: TLabel;
  17. procedure FormShow(Sender: TObject);
  18. procedure LabLinkClick(Sender: TObject);
  19. private
  20. { private declarations }
  21. public
  22. { public declarations }
  23. end;
  24. var
  25. AboutForm: TAboutForm;
  26. implementation
  27. uses
  28. LCLIntf,
  29. ImagingComponents;
  30. {$R *.lfm}
  31. { TAboutForm }
  32. procedure TAboutForm.FormShow(Sender: TObject);
  33. begin
  34. LabVersion.Caption := 'version ' + Imaging.GetVersionStr;
  35. if ImageLogo.Picture.Graphic = nil then
  36. begin
  37. ImageLogo.Picture.LoadFromResourceName(HInstance, 'LOGO', ImagingComponents.TImagingPNG);
  38. end;
  39. end;
  40. procedure TAboutForm.LabLinkClick(Sender: TObject);
  41. begin
  42. OpenURL(TLabel(Sender).Caption);
  43. end;
  44. end.