-
Notifications
You must be signed in to change notification settings - Fork 0
/
UnitFormSelectFiles.pas
59 lines (47 loc) · 1.21 KB
/
UnitFormSelectFiles.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
unit UnitFormSelectFiles;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, CheckLst, Buttons, ExtCtrls;
type
TFormSelectFiles = class(TForm)
PanelBas: TPanel;
BitBtnOk: TBitBtn;
BitBtnCancel: TBitBtn;
CheckListBoxLog: TCheckListBox;
procedure FormResize(Sender: TObject);
procedure BitBtnOkClick(Sender: TObject);
procedure CheckListBoxLogClickCheck(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FormSelectFiles: TFormSelectFiles;
implementation
{$R *.dfm}
procedure TFormSelectFiles.FormResize(Sender: TObject);
begin
begin
BitBtnCancel.Left := PanelBas.Width -(BitBtnCancel.Width + 10);
BitBtnOk.Left := BitBtnCancel.Left -(BitBtnOk.Width + 10);
end;
end;
procedure TFormSelectFiles.BitBtnOkClick(Sender: TObject);
begin
modalResult := mrOk;
end;
procedure TFormSelectFiles.CheckListBoxLogClickCheck(Sender: TObject);
Var
i : integer;
Begin
For i := 0 To CheckListBoxLog.Count -1
Do If CheckListBoxLog.Checked[i]
Then Begin
BitBtnOk.Enabled := True;
Exit;
End;
BitBtnOk.Enabled := False;
end;
end.