source: trunk/Forms/FormInput.pas@ 175

Last change on this file since 175 was 152, checked in by chronos, 13 months ago
  • Fixed: A typo in interpreter target name.
File size: 578 bytes
Line 
1unit FormInput;
2
3interface
4
5uses
6 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
7 FormEx;
8
9type
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
20implementation
21
22{$R *.lfm}
23
24uses
25 Core, TargetInterpreter;
26
27procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char);
28begin
29 if Core.Core.CurrentTarget is TTargetInterpreter then
30 with TTargetInterpreter(Core.Core.CurrentTarget) do
31 Input := Input + Key;
32end;
33
34end.
35
Note: See TracBrowser for help on using the repository browser.