-
Notifications
You must be signed in to change notification settings - Fork 3
/
help.pas
60 lines (46 loc) · 1.82 KB
/
help.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
unit help;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, IpHtml, Ipfilebroker, Iphttpbroker, Forms,
Controls, Graphics, Dialogs, ExtCtrls, StdCtrls;
type
{ TfHelp }
TfHelp = class(TForm)
IpFileDataProvider1: TIpFileDataProvider;
IpHtmlPanel1: TIpHtmlPanel;
RGrazdeli: TRadioGroup;
procedure FormCreate(Sender: TObject);
procedure RGrazdeliSelectionChanged(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
fHelp: TfHelp;
implementation
{$R *.lfm}
{ TfHelp }
procedure TfHelp.FormCreate(Sender: TObject);
begin
IpHtmlPanel1.OpenURL('help/Vozmozhnosti.html');
end;
procedure TfHelp.RGrazdeliSelectionChanged(Sender: TObject);
begin
case RGrazdeli.ItemIndex of
0 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Vozmozhnosti.html'));
1 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Naznachenie.html'));
2 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Type-lic-PO.html'));
3 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/avtopoisk.html'));
4 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Ruch-poisk.html'));
5 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/media-poisk.html'));
6 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Install-PO.html'));
7 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Poisk-v-baze.html'));
8 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Zamena.html'));
9 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Settings.html'));
10 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/park-comp.html'));
11 : IpHtmlPanel1.OpenURL(expandLocalHtmlFileName('help/Vozmozh-Oshibki.html'));
end;
end;
end.