|
Last change
on this file was 433, checked in by chronos, 13 years ago |
- Added: Custom new version info form with option to show release notes.
- Fixed: Run setup with elevated privileges.
- Added: Can read version info file from local filesystem.
- Added: Demo application.
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | unit UFormNewVersionOffer;
|
|---|
| 2 |
|
|---|
| 3 | {$mode delphi}{$H+}
|
|---|
| 4 |
|
|---|
| 5 | interface
|
|---|
| 6 |
|
|---|
| 7 | uses
|
|---|
| 8 | Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
|
|---|
| 9 | StdCtrls, Buttons, ExtCtrls;
|
|---|
| 10 |
|
|---|
| 11 | type
|
|---|
| 12 |
|
|---|
| 13 | { TFormNewVersionOffer }
|
|---|
| 14 |
|
|---|
| 15 | TFormNewVersionOffer = class(TForm)
|
|---|
| 16 | BitBtnNo: TBitBtn;
|
|---|
| 17 | BitBtnWhatsNew: TBitBtn;
|
|---|
| 18 | BitBtnYes: TBitBtn;
|
|---|
| 19 | Image1: TImage;
|
|---|
| 20 | LabelChanges: TLabel;
|
|---|
| 21 | LabelQuestion: TLabel;
|
|---|
| 22 | MemoReleaseNotes: TMemo;
|
|---|
| 23 | procedure BitBtnWhatsNewClick(Sender: TObject);
|
|---|
| 24 | procedure FormCreate(Sender: TObject);
|
|---|
| 25 | procedure FormShow(Sender: TObject);
|
|---|
| 26 | private
|
|---|
| 27 | { private declarations }
|
|---|
| 28 | public
|
|---|
| 29 | end;
|
|---|
| 30 |
|
|---|
| 31 | var
|
|---|
| 32 | FormNewVersionOffer: TFormNewVersionOffer;
|
|---|
| 33 |
|
|---|
| 34 | implementation
|
|---|
| 35 |
|
|---|
| 36 | uses
|
|---|
| 37 | UUpdateChecker;
|
|---|
| 38 |
|
|---|
| 39 | { TFormNewVersionOffer }
|
|---|
| 40 |
|
|---|
| 41 | procedure TFormNewVersionOffer.FormCreate(Sender: TObject);
|
|---|
| 42 | begin
|
|---|
| 43 | end;
|
|---|
| 44 |
|
|---|
| 45 | procedure TFormNewVersionOffer.BitBtnWhatsNewClick(Sender: TObject);
|
|---|
| 46 | begin
|
|---|
| 47 | MemoReleaseNotes.Visible := True;
|
|---|
| 48 | LabelChanges.Visible := True;
|
|---|
| 49 | Height := 300;
|
|---|
| 50 | end;
|
|---|
| 51 |
|
|---|
| 52 | procedure TFormNewVersionOffer.FormShow(Sender: TObject);
|
|---|
| 53 | begin
|
|---|
| 54 | Caption := SCheckUpdates;
|
|---|
| 55 | LabelChanges.Caption := SChangesInNewVersion;
|
|---|
| 56 | BitBtnYes.Caption := SYes;
|
|---|
| 57 | BitBtnNo.Caption := SNo;
|
|---|
| 58 | BitBtnWhatsNew.Caption := SWhatsNew;
|
|---|
| 59 | end;
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | initialization
|
|---|
| 63 | {$I UFormNewVersionOffer.lrs}
|
|---|
| 64 |
|
|---|
| 65 | end.
|
|---|
| 66 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.