doom4ster
2017-03-16 f7a5517638c169c5f8d47339afbc6cfac2e08f5e
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
unit DocCopy;
 
interface
 
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, CheckLst, ExtCtrls;
 
type
  TDocCopyForm = class(TForm)
    Panel1: TPanel;
    Splitter1: TSplitter;
    CopyFromGB: TGroupBox;
    CheckListBox1: TCheckListBox;
    CopyToGB: TGroupBox;
    CheckListBox2: TCheckListBox;
    Panel2: TPanel;
    CopyBt: TButton;
    CancelBt: TButton;
    procedure CopyBtClick(Sender: TObject);
    procedure CancelBtClick(Sender: TObject);
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
 
var
  DocCopyForm: TDocCopyForm;
 
implementation
 
{$R *.dfm}
 
procedure TDocCopyForm.CopyBtClick(Sender: TObject);
begin
  ModalResult := MrOk;
end;
 
procedure TDocCopyForm.FormCreate(Sender: TObject);
begin
  PostMessage(Handle,WM_ACTIVATE,WA_CLICKACTIVE,0);
end;
 
procedure TDocCopyForm.CancelBtClick(Sender: TObject);
begin
  ModalResult := MrCancel;
end;
 
end.