Changeset 25 for trunk/Packages/Common/UApplicationInfo.pas
- Timestamp:
- Sep 10, 2022, 6:54:43 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UApplicationInfo.pas
r20 r25 1 1 unit UApplicationInfo; 2 3 {$mode delphi}4 2 5 3 interface 6 4 7 5 uses 8 SysUtils, Classes, Forms, URegistry, LCLType;6 SysUtils, Classes, Forms, URegistry, Controls, Graphics, LCLType; 9 7 10 8 type … … 15 13 private 16 14 FDescription: TTranslateString; 15 FIcon: TBitmap; 17 16 FIdentification: Byte; 18 17 FLicense: string; … … 33 32 public 34 33 constructor Create(AOwner: TComponent); override; 34 destructor Destroy; override; 35 35 property Version: string read GetVersion; 36 36 function GetRegistryContext: TRegistryContext; … … 47 47 property EmailContact: string read FEmailContact write FEmailContact; 48 48 property AppName: string read FAppName write FAppName; 49 property Description: string read FDescription write FDescription;49 property Description: TTranslateString read FDescription write FDescription; 50 50 property ReleaseDate: TDateTime read FReleaseDate write FReleaseDate; 51 51 property RegistryKey: string read FRegistryKey write FRegistryKey; 52 52 property RegistryRoot: TRegistryRoot read FRegistryRoot write FRegistryRoot; 53 53 property License: string read FLicense write FLicense; 54 property Icon: TBitmap read FIcon write FIcon; 54 55 end; 55 56 56 57 procedure Register; 57 58 59 58 60 implementation 59 61 60 62 procedure Register; 61 63 begin … … 74 76 constructor TApplicationInfo.Create(AOwner: TComponent); 75 77 begin 76 inherited Create(AOwner);78 inherited; 77 79 FVersionMajor := 1; 78 80 FIdentification := 1; … … 80 82 FRegistryKey := '\Software\' + FAppName; 81 83 FRegistryRoot := rrKeyCurrentUser; 84 FIcon := TBitmap.Create; 85 end; 86 87 destructor TApplicationInfo.Destroy; 88 begin 89 FreeAndNil(FIcon); 90 inherited; 82 91 end; 83 92
Note:
See TracChangeset
for help on using the changeset viewer.