UCTRLBanner.pas 1011 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. unit UCTRLBanner;
  2. {$mode delphi}
  3. { Copyright (c) 2018 by Herman Schoenfeld
  4. Distributed under the MIT software license, see the accompanying file LICENSE
  5. or visit http://www.opensource.org/licenses/mit-license.php.
  6. }
  7. interface
  8. {$I ./../PascalCoin/config.inc}
  9. uses
  10. Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
  11. Menus, StdCtrls, UConst;
  12. type
  13. { TCTRLBanner }
  14. TCTRLBanner = class(TForm)
  15. cbLanguage: TComboBox;
  16. imBackground : TImage;
  17. imLogo: TImage;
  18. ilLogoImages: TImageList;
  19. lblClientVersion: TLabel;
  20. procedure FormCreate(Sender: TObject);
  21. private
  22. { private declarations }
  23. public
  24. { public declarations }
  25. end;
  26. implementation
  27. uses UCommonUI;
  28. {$R *.lfm}
  29. { TCTRLBanner }
  30. procedure TCTRLBanner.FormCreate(Sender: TObject);
  31. begin
  32. {$ifdef TESTNET}
  33. imLogo.SetImageListPicture(ilLogoImages, 1);
  34. {$else}
  35. imLogo.SetImageListPicture(ilLogoImages, 0);
  36. {$endif}
  37. lblClientVersion.Caption := CT_ClientAppVersion;
  38. end;
  39. end.