Changeset 38 for trunk/Forms/UFormInput.pas
- Timestamp:
- Feb 19, 2012, 10:29:55 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormInput.pas
r37 r38 6 6 7 7 uses 8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs ;8 Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; 9 9 10 10 type 11 TForm2 = class(TForm) 11 12 { TFormInput } 13 14 TFormInput = class(TForm) 15 Label1: TLabel; 16 MemoInput: TMemo; 17 procedure MemoInputKeyPress(Sender: TObject; var Key: char); 12 18 private 13 19 { private declarations } … … 17 23 18 24 var 19 Form2: TForm2; 25 FormInput: TFormInput; 26 20 27 21 28 implementation … … 23 30 {$R *.lfm} 24 31 32 uses 33 UFormMain, UTargetInterpretter; 34 35 procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char); 36 begin 37 if MainForm.CurrentTarget is TTargetInterpretter then 38 with TTargetInterpretter(MainForm.CurrentTarget) do 39 Input := Input + Key; 40 end; 41 42 25 43 end. 26 44
Note:
See TracChangeset
for help on using the changeset viewer.