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