source: trunk/Packages/Common/UAboutDialog.pas

Last change on this file was 10, checked in by chronos, 2 years ago
  • Modified: General UTest unit moved into Common package.
File size: 1019 bytes
Line 
1unit UAboutDialog;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus,
7 ExtCtrls, UApplicationInfo, UCommon, UTranslator, UTheme, UFormAbout;
8
9type
10
11 { TAboutDialog }
12
13 TAboutDialog = class(TComponent)
14 private
15 FApplicationInfo: TApplicationInfo;
16 FTranslator: TTranslator;
17 FThemeManager: TThemeManager;
18 public
19 FormAbout: TFormAbout;
20 procedure Show;
21 published
22 property Translator: TTranslator read FTranslator write FTranslator;
23 property ThemeManager: TThemeManager read FThemeManager write FThemeManager;
24 property ApplicationInfo: TApplicationInfo read FApplicationInfo write
25 FApplicationInfo;
26 end;
27
28procedure Register;
29
30
31implementation
32
33procedure Register;
34begin
35 RegisterComponents('Common', [TAboutDialog]);
36end;
37
38{ TAboutDialog }
39
40procedure TAboutDialog.Show;
41begin
42 FormAbout := TFormAbout.Create(nil);
43 try
44 FormAbout.AboutDialog := Self;
45 FormAbout.ShowModal;
46 finally
47 FreeAndNil(FormAbout);
48 end;
49end;
50
51end.
52
Note: See TracBrowser for help on using the repository browser.