Changeset 142 for trunk/Forms/UFormAbout.pas
- Timestamp:
- Dec 10, 2016, 6:19:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormAbout.pas
r96 r142 7 7 uses 8 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, Menus, 9 StdCtrls, UApplicationInfo, UCommon;9 StdCtrls, ExtCtrls, UApplicationInfo, UCommon, LCLIntf; 10 10 11 11 type … … 14 14 15 15 TFormAbout = class(TForm) 16 ApplicationInfo1: TApplicationInfo;17 16 ButtonHomePage: TButton; 18 17 ButtonClose: TButton; 18 Image1: TImage; 19 19 LabelAppName: TLabel; 20 20 LabelDescription: TLabel; 21 21 LabelContent: TLabel; 22 Panel1: TPanel; 22 23 procedure ButtonHomePageClick(Sender: TObject); 23 24 procedure FormCreate(Sender: TObject); … … 26 27 { private declarations } 27 28 public 28 { public declarations }29 ApplicationInfo: TApplicationInfo; 29 30 end; 30 31 … … 48 49 procedure TFormAbout.FormShow(Sender: TObject); 49 50 begin 50 LabelAppName.Caption := ApplicationInfo1.AppName; 51 LabelContent.Caption := SVersion + ': ' + ApplicationInfo1.Version + LineEnding + 52 SReleaseDate + ': ' + DateToStr(ApplicationInfo1.ReleaseDate) + LineEnding + 53 SLicense + ': ' + ApplicationInfo1.License; 51 if Assigned(ApplicationInfo) then begin 52 LabelAppName.Caption := ApplicationInfo.AppName; 53 LabelContent.Caption := SVersion + ': ' + ApplicationInfo.Version + LineEnding + 54 SReleaseDate + ': ' + DateToStr(ApplicationInfo.ReleaseDate) + LineEnding + 55 SLicense + ': ' + ApplicationInfo.License; 56 end; 54 57 end; 55 58 56 59 procedure TFormAbout.ButtonHomePageClick(Sender: TObject); 57 60 begin 58 OpenWebPage(ApplicationInfo1.HomePage); 61 if Assigned(ApplicationInfo) then 62 OpenURL(ApplicationInfo.HomePage); 59 63 end; 60 64
Note:
See TracChangeset
for help on using the changeset viewer.