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