-
Notifications
You must be signed in to change notification settings - Fork 1
/
StrategyFr.pas
56 lines (47 loc) · 1.18 KB
/
StrategyFr.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
unit StrategyFr;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls, Buttons, ComCtrls, DynamicSkinForm, SkinCtrls;
type
TStrategy = class(TForm)
spDynamicSkinForm1: TspDynamicSkinForm;
spSkinButton1: TspSkinButton;
spSkinStdLabel1: TspSkinStdLabel;
spSkinStdLabel2: TspSkinStdLabel;
spSkinPanel1: TspSkinPanel;
spSkinScrollBar1: TspSkinScrollBar;
RzListView2: TspSkinListView;
procedure SetupListView;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Strategy: TStrategy;
implementation
uses Main, DataModFr;
{$R *.DFM}
procedure TStrategy.SetupListView;
var
ListItem : TListItem;
i : integer;
begin
RzListView2.Items.Clear;
for i := 0 to NTreat - 1 do
begin
with RzListView2 do
begin
ListItem := items.Add;
listitem.Caption := Inttostr (MTR[i+1]);
ListItem.SubItems.Add (Tnam[i+1]);
ListItem.SubItems.Add (Fnam[i+1]);
ListItem.SubItems.Add (Format ('%9.1f',[xmu[1,i+1]]));
ListItem.SubItems.Add (Format ('%9.1f',[adj[i+1]]));
ListItem.SubItems.Add (Effish[i+1]);
end;
end;
RzListView2.Update;
end;
end.