Ignore:
Timestamp:
Feb 19, 2012, 10:29:55 AM (13 years ago)
Author:
chronos
Message:
  • Modified: Used manual docked forms for better code separation.
  • Modified: Used tabbed layout with PageControl and TabSheets for better usability.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormInput.pas

    r37 r38  
    66
    77uses
    8   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs;
     8  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
    99
    1010type
    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);
    1218  private
    1319    { private declarations }
     
    1723
    1824var
    19   Form2: TForm2;
     25  FormInput: TFormInput;
     26
    2027
    2128implementation
     
    2330{$R *.lfm}
    2431
     32uses
     33  UFormMain, UTargetInterpretter;
     34
     35procedure TFormInput.MemoInputKeyPress(Sender: TObject; var Key: char);
     36begin
     37  if MainForm.CurrentTarget is TTargetInterpretter then
     38  with TTargetInterpretter(MainForm.CurrentTarget) do
     39    Input := Input + Key;
     40end;
     41
     42
    2543end.
    2644
Note: See TracChangeset for help on using the changeset viewer.