Line | |
---|
1 | unit UFormInput;
|
---|
2 |
|
---|
3 | {$mode delphi}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
|
---|
9 |
|
---|
10 | type
|
---|
11 |
|
---|
12 | { TFormInput }
|
---|
13 |
|
---|
14 | TFormInput = class(TForm)
|
---|
15 | Label1: TLabel;
|
---|
16 | MemoInput: TMemo;
|
---|
17 | procedure MemoInputKeyPress(Sender: TObject; var Key: char);
|
---|
18 | private
|
---|
19 | { private declarations }
|
---|
20 | public
|
---|
21 | { public declarations }
|
---|
22 | end;
|
---|
23 |
|
---|
24 | var
|
---|
25 | FormInput: TFormInput;
|
---|
26 |
|
---|
27 |
|
---|
28 | implementation
|
---|
29 |
|
---|
30 | {$R *.lfm}
|
---|
31 |
|
---|
32 | uses
|
---|
33 | UCore, UTargetInterpretter;
|
---|
34 |
|
---|
35 | procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char);
|
---|
36 | begin
|
---|
37 | if Core.CurrentTarget is TTargetInterpretter then
|
---|
38 | with TTargetInterpretter(Core.CurrentTarget) do
|
---|
39 | Input := Input + Key;
|
---|
40 | end;
|
---|
41 |
|
---|
42 |
|
---|
43 | end.
|
---|
44 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.