source: tags/1.0.0/Forms/UFormInput.pas

Last change on this file was 67, checked in by chronos, 9 years ago
File size: 685 bytes
Line 
1unit UFormInput;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
9
10type
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
24var
25 FormInput: TFormInput;
26
27
28implementation
29
30{$R *.lfm}
31
32uses
33 UCore, UTargetInterpretter;
34
35procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char);
36begin
37 if Core.CurrentTarget is TTargetInterpretter then
38 with TTargetInterpretter(Core.CurrentTarget) do
39 Input := Input + Key;
40end;
41
42
43end.
44
Note: See TracBrowser for help on using the repository browser.